🏡 Open source home automation that puts local control and privacy first.
Go to file
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
.devcontainer Call setup during devcontainer create (#46224) 2021-02-08 16:16:40 +01:00
.github Bump codecov/codecov-action from v1.2.1 to v1.2.2 (#47707) 2021-03-10 09:40:03 +01:00
.vscode Disable pytest enabled in vscode default settings (#45317) 2021-01-19 10:25:02 +01:00
docs Remove Travis CI config (#44443) 2020-12-22 13:49:42 +01:00
homeassistant Delay ZHA group updates to ensure all members are updated first (#46861) 2021-03-16 17:38:16 -04:00
machine Fix generic-x86-64 build (#47214) 2021-03-01 09:17:41 +01:00
rootfs Disable jemalloc via specific ENV variable, see Issue#36237 (#36274) 2020-06-03 01:08:50 +02:00
script Allow running and restarting with both ozw and zwave active (#47566) 2021-03-08 10:26:08 -08:00
tests Delay ZHA group updates to ensure all members are updated first (#46861) 2021-03-16 17:38:16 -04:00
.coveragerc Add config flow to Verisure (#47880) 2021-03-15 12:30:44 -07:00
.dockerignore Integrate dockerbuild (#33168) 2020-03-23 00:39:37 +01:00
.gitattributes highlight Dockerfile.dev as Dockerfile in github ui (#36933) 2020-06-22 14:45:57 +02:00
.gitignore Fix too agressive .gitignore (#41677) 2020-10-12 16:48:42 +02:00
.hadolint.yaml Add hadolint to CI (#34758) 2020-04-27 12:09:31 +02:00
.ignore Include .ignore file for search utilities (#5290) 2017-01-16 22:52:53 -08:00
.pre-commit-config.yaml Upgrade isort to 5.7.0 (#47279) 2021-03-02 21:16:11 +01:00
.prettierignore Rename translations dir for integrations (#34494) 2020-04-21 16:11:05 -07:00
.readthedocs.yml Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
.yamllint Add yamllint (in pre-commit and CI) (#33676) 2020-04-05 10:33:45 +02:00
CLA.md
CODEOWNERS Implement Wake On Lan Dummy State (#47719) 2021-03-15 17:20:47 +01:00
CODE_OF_CONDUCT.md Update Code of Conduct to 2.0 (#36142) 2020-05-25 19:40:40 -04:00
CONTRIBUTING.md Use core GitHub URL in contributing guidelines (#41083) 2020-10-02 20:42:33 +02:00
Dockerfile Increase timeout to avoid killing the core during shutdown (#45029) 2021-01-11 11:24:02 +01:00
Dockerfile.dev Install libpcap-dev for devcontainer (#46106) 2021-02-11 13:17:49 -10:00
LICENSE.md
MANIFEST.in
README.rst Update README.rst to avoid redirects (#44519) 2020-12-26 10:05:41 +01:00
azure-pipelines-ci.yml Revert "Update azure-pipelines-ci.yml to enable black mode in isort" (#45390) 2021-01-21 11:01:22 +01:00
azure-pipelines-release.yml Bump builder to get generic-x86-64 nightly builds (#47164) 2021-02-28 14:33:48 +01:00
azure-pipelines-translation.yml Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
azure-pipelines-wheels.yml Update azure-pipelines-wheels.yml 2020-09-13 15:38:02 +02:00
build.json Update docker base image 2021.02.0 (#45889) 2021-02-03 10:41:02 +01:00
codecov.yml Update Codecov.io configuration (#33783) 2020-04-07 09:01:01 -07:00
pyproject.toml Restore pylint concurrency (#47221) 2021-03-01 13:40:46 +01:00
requirements.txt Upgrade aiohttp to 3.7.4.post0 (#47627) 2021-03-08 23:18:55 +01:00
requirements_all.txt Bump philips_js with backported fixes (#47959) 2021-03-16 21:24:01 +01:00
requirements_docs.txt Refactor API documentation (#33217) 2020-03-25 13:21:04 -07:00
requirements_test.txt Upgrade pre-commit to 2.11.0 (#47618) 2021-03-08 13:03:39 +01:00
requirements_test_all.txt Bump philips_js with backported fixes (#47959) 2021-03-16 21:24:01 +01:00
requirements_test_pre_commit.txt Upgrade isort to 5.7.0 (#47279) 2021-03-02 21:16:11 +01:00
setup.cfg Fix recorder with MSSQL (#46678) 2021-03-09 11:16:19 -10:00
setup.py Upgrade aiohttp to 3.7.4.post0 (#47627) 2021-03-08 23:18:55 +01:00
tox.ini Fix version of pip in tox (#46656) 2021-02-16 12:26:41 -10:00

README.rst

Home Assistant |Chat Status|
=================================================================================

Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

Check out `home-assistant.io <https://home-assistant.io>`__ for `a
demo <https://home-assistant.io/demo/>`__, `installation instructions <https://home-assistant.io/getting-started/>`__,
`tutorials <https://home-assistant.io/getting-started/automation/>`__ and `documentation <https://home-assistant.io/docs/>`__.

|screenshot-states|

Featured integrations
---------------------

|screenshot-components|

The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://developers.home-assistant.io/docs/architecture_index/>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/creating_component_index/>`__.

If you run into issues while using Home Assistant or during development
of a component, check the `Home Assistant help section <https://home-assistant.io/help/>`__ of our website for further help and information.

.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://discord.gg/c5DvZ4e
.. |screenshot-states| image:: https://raw.github.com/home-assistant/home-assistant/master/docs/screenshots.png
   :target: https://home-assistant.io/demo/
.. |screenshot-components| image:: https://raw.github.com/home-assistant/home-assistant/dev/docs/screenshot-components.png
   :target: https://home-assistant.io/integrations/