1
mirror of https://github.com/home-assistant/core synced 2024-10-04 07:58:43 +02:00
ha-core/homeassistant
Abílio Costa d49a436573
Delay ZHA group updates to ensure all members are updated first (#46861)
* Delay ZHA group updates to ensure all members are updated first

After turning off a group, when the first device reports "off", the
other devices may still be "on". If HA processes the group state update
quickly enough, the group will see that some devices are on, so the
state of the group will revert back to "on", and then "off" when the
remaining devices all report "off". That would cause the UI toggle to go
back and forward quickly, and automations that trigger with "state: on"
to fire when the user turns the group off.

This PR fixes that by delaying the group state update, giving time for
all the devices to report their states first.

* Fix zha group tests

* Reorder sleeping.

* Update tests/components/zha/common.py

Co-authored-by: Alexei Chetroi <lexoid@gmail.com>
2021-03-16 17:38:16 -04:00
..
auth Lint suppression cleanups (#47248) 2021-03-02 09:02:04 +01:00
components Delay ZHA group updates to ensure all members are updated first (#46861) 2021-03-16 17:38:16 -04:00
generated Add config flow to Verisure (#47880) 2021-03-15 12:30:44 -07:00
helpers Add location details to deprecation warning (#47155) 2021-03-16 21:16:07 +01:00
scripts Clean up secret loading (#47034) 2021-03-02 12:58:53 -08:00
util Improve bad JSON data reporting (#47932) 2021-03-15 10:41:25 +01:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py Clean up secret loading (#47034) 2021-03-02 12:58:53 -08:00
config_entries.py Config flow to allow marking itself as confirm only (#47607) 2021-03-08 10:54:51 -08:00
config.py Clean up secret loading (#47034) 2021-03-02 12:58:53 -08:00
const.py Add device classes for CO and CO2 measurements (#47487) 2021-03-07 00:52:43 +01:00
core.py Lint suppression cleanups (#47248) 2021-03-02 09:02:04 +01:00
data_entry_flow.py Lint suppression cleanups (#47248) 2021-03-02 09:02:04 +01:00
exceptions.py Lint suppression cleanups (#47248) 2021-03-02 09:02:04 +01:00
loader.py Fix flip-flopped substitutions in Custom Version Type Warning message. (#46768) 2021-02-19 03:00:14 +01:00
package_constraints.txt Bump frontend to 20210314.0 2021-03-14 23:48:47 +00:00
requirements.py
runner.py
setup.py
strings.json Consistent spelling of IT abbreviations / protocol / format names (#45913) 2021-02-04 01:43:07 +01:00