2022.11: Smarter reloading of automation & scripts

This commit is contained in:
Franck Nijhof 2022-11-02 17:15:47 +01:00
parent ada55c86ae
commit e3eb737f3f
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -105,28 +105,22 @@ Yes, all of the above, this card can do!
## Smarter reloading of automation & scripts ## Smarter reloading of automation & scripts
{% details "TODO" %} > [WTH do all automations get reloaded when you change any of them?](https://community.home-assistant.io/t/wth-do-all-automatons-get-reloaded-when-you-change-any-of-them/467270)
- Improve extend story Good question! And that WTH topic got over 180+ votes as well!
- Update vote count
- Spelling/grammar
- Only reload modified automations ([@emontnemery] - [#80282]) ([automation docs]) (noteworthy)
- Only reload modified scripts ([@emontnemery] - [#80470]) ([automation docs]) ([script docs]) (noteworthy)
{% enddetails %}
Results of a WTH topic: [WTH do all automations get reloaded when you change any of them?](https://community.home-assistant.io/t/wth-do-all-automatons-get-reloaded-when-you-change-any-of-them/467270)
It got well over 170+ votes.
When you change a single automation or script via the editors in the user When you change a single automation or script via the editors in the user
interface (or reload your YAML based ones), they always all get reloaded. interface (or reload your YAML-based ones), they all get reloaded. This
means if they are running, waiting for something (a delay, an event, or for an
entity to be in a certain state for X time), they would all be reset.
This means if they are running, waiting for something (a delay, an even or This release changes this behavior, resolving that WTH! Only automations that
for a entity to be in a certain state for X time), they would all be reset. are actually changed are reloaded. All others will remain running and untouched.
This release changes this behavior. Only automations and scripts that are This works when editing an automation in the UI, and even when reloading your
actually changed are reloaded. All others will remain running untouched. YAML-based automations in any split YAML setup you might have.
Oh, as an added bonus: We applied the exact same for scripts too!
## Getting insights into water usage ## Getting insights into water usage