-
-
Notifications
You must be signed in to change notification settings - Fork 36.3k
Improve trigger descriptions #157643
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
Improve trigger descriptions #157643
Conversation
| }, | ||
| "title": "Assist satellite", | ||
| "triggers": { | ||
| "idle": { |
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.
The keys for assist_satellite are not consistent with other domains
| }, | ||
| "title": "Lawn mower", | ||
| "triggers": { | ||
| "docked": { |
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.
should we change this to "returned_to_dock", or is "docked" good enough?
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.
Docked is good.
You explained it too me, we do not enforce the temporary state "Returning to dock". So it's for both. IT's good 👍🏻
| "name": "When a lawn mower has docked" | ||
| "name": "Lawn mower returned to dock" | ||
| }, | ||
| "errored": { |
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.
should we change this to "encounted_error", or is "errored" good enough?
| }, | ||
| "title": "Vacuum", | ||
| "triggers": { | ||
| "docked": { |
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.
Same comment as for lawn mower
| "name": "When a vacuum cleaner has docked" | ||
| "name": "Vacuum returned to dock" | ||
| }, | ||
| "errored": { |
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.
Same comment as for lawn mower
| "triggers": { | ||
| "armed": { | ||
| "description": "Triggers when an alarm is armed.", | ||
| "description": "Triggers when one or several alarms are armed, regardless of the mode.", |
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.
I discussed this a bit with @jlpouffier.
He first suggested "Triggers when one or several alarms are armed, regardless of the mode.", then I suggested to drop the "get", and in the PR I changed to "are".
Edit: Changed back to "get"
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.
Why not replace 'several' with 'more' to simplify the wording?
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.
jbouwh
left a comment
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.
LGTM,
Thanks @emontnemery 👍
|
I want @jlpouffier to review before this is merged |
|
I hid the bot review comments because I don't think they were helpful |
|
@MartinHjelmare there have been a lot of discussions about the wording. |
|
Grammar isn't really something to discuss. It's either correct or wrong. What to discuss is what tense to use for the description. |
|
OK, let's not discuss grammar here then. Closing for now. |
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.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
|
I'm ok with @MartinHjelmare proposal
EDIT: on hold, discussing with Martin .. Not sure I fully understand the nuances OK, discussing with @MartinHjelmare ✅ It's actually I'm ok with that, i'll review now with that in mind |
|
@emontnemery I made lots of comments, but only the first one is actually something I'd like to see changed I made a proposal alighed with other triggers |
Co-authored-by: Martin Hjelmare <[email protected]>
frenck
left a comment
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.
Co-authored-by: Martin Hjelmare <[email protected]>

Proposed change
Improve trigger descriptions as discussed with @jlpouffier
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: