home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
5.02k stars 7.31k forks source link

Inconsistent use of trigger #35364

Open basslet opened 1 month ago

basslet commented 1 month ago

Feedback

Your use of trigger in Template is inconsistent to automation triggers:

The template docs state: https://www.home-assistant.io/integrations/template/#trigger-based-template-binary-sensors-buttons-numbers-selects-and-sensors

template:
  - trigger:
      - trigger: time_pattern
        hours: 0
        minutes: 0

In automations, you now use:

triggers: (with an s)
- trigger:
- trigger

Why the inconsistency?

URL

https://www.home-assistant.io/integrations/template/

Version

2024.10.3

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @phracturedblue, @tetienne, @home-assistant/core, mind taking a look at this feedback as it has been labeled with an integration (template) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `template` can trigger bot actions by commenting: - `@home-assistant close` Closes the feedback. - `@home-assistant rename Awesome new title` Renames the feedback. - `@home-assistant reopen` Reopen the feedback. - `@home-assistant unassign template` Removes the current integration label and assignees on the feedback, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information) to the feedback. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information) on the feedback.