* Only update CecDevice state when there is new data
* Replace CecDevice with CecEntity
* Support for losing and reconnecting to pycec TcpAdapter
* Register listener in async_added_to_hass
* Rename hdmi_cec watchdog
* Only update CecDevice state when there is new data
* Fix flake8 docstring error
* Fix linter error
* Bump pycec version to 0.5.0
* Bump pycec version to 0.5.1
* Fixe merge mistake
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* 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>
* Bump withings_api to 2.3.1 (fixes#47329)
* Fix NotifyAppli calls to be compatible with withings_api 2.3.1
* Fix errors with withings_api 2.2+ using pydantic
* Bump withings_api to 2.3.2
Giving a value of 0 by default can lead to erroneous
data being exported. For example, if a MQTT temperature
sensor is in `STATE_UNKNOWN` (which can happen after a
HASS restart), a temperature of 0°C will be exported.
Some user might prefer no value rather than a wrong one.
* add flag to prevent sending an on command
* fix condition
* add constant for default transition
* make groups work with new force on flag
* reorder light entity creation
* rearrange logic
* update test
* remove failed attempt at group light flag
* fix flag