-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add describeCondition and entity_ids as additional information to automation step details #21965
base: dev
Are you sure you want to change the base?
Add describeCondition and entity_ids as additional information to automation step details #21965
Conversation
…omation step details
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant HaTracePathDetails
participant Config
User->>HaTracePathDetails: Request trace path details
HaTracePathDetails->>Config: Retrieve selected configuration
Config-->>HaTracePathDetails: Return details (alias, entity_id, conditions)
HaTracePathDetails->>User: Display trace path details (alias, descriptions)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Please merge this if it does what I think it might do! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A screenshot of before & after is not required but would be very appreciated and it speeds up the review.
if (currentDetail[nestPath[i]] !== undefined) { | ||
if (typeof currentDetail[nestPath[i]] !== "string") { | ||
currentDetail = currentDetail[nestPath[i]]; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (currentDetail[nestPath[i]] !== undefined) { | |
if (typeof currentDetail[nestPath[i]] !== "string") { | |
currentDetail = currentDetail[nestPath[i]]; | |
} | |
} | |
if (!['undefined', 'string'].includes(typeof currentDetail[nestPath[i]])) { | |
currentDetail = currentDetail[nestPath[i]]; | |
} |
? currentDetail.alias !== undefined | ||
? html`<h2>${currentDetail.alias}</h2>` | ||
: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? currentDetail.alias !== undefined | |
? html`<h2>${currentDetail.alias}</h2>` | |
: "" | |
? currentDetail.alias | |
? html`<h2>${currentDetail.alias}</h2>` | |
: nothing |
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
…automation-step-details
Co-authored-by: Petar Petrov <[email protected]>
Breaking change
Proposed change
Adds some extra information to Automation Traces, such as describeCondition and entity_id
see #20660
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
Summary by CodeRabbit
New Features
alias
and formatted display ofentity_id
for better clarity.Bug Fixes