1
mirror of https://github.com/home-assistant/core synced 2024-07-18 12:02:20 +02:00
ha-core/homeassistant/components/lifx
Avi Miller a0974e0c72
Refactor LIFX discovery to prevent duplicate discovery response handling (#72213)
* Partially revert #70458 and allow duplicate LIFX discoveries

Signed-off-by: Avi Miller <me@dje.li>

* Only process one discovery at a time

* Revert all LIFX duplicate/inflight discovery checks

Also remember LIFX Switches and do as little processing for them
as possible.

Signed-off-by: Avi Miller <me@dje.li>

* Bump aiolifx version to support the latest LIFX devices

LIFX added 22 new product definitions to their public product
list at the end of January and those new products are defined in
aiolifx v0.8.1, so bump the dependency version.

Also switched to testing for relays instead of maintaining a
seperate list of switch product IDs.

Fixes #72894.

Signed-off-by: Avi Miller <me@dje.li>

* Refactor LIFX discovery to better handle duplicate responses

Signed-off-by: Avi Miller <me@dje.li>

* Update clear_inflight_discovery with review suggestion

Signed-off-by: Avi Miller <me@dje.li>

* Move the existing entity check to before the asyncio lock

Signed-off-by: Avi Miller <me@dje.li>

* Bail out of discovery early and if an entity was created

Also ensure that the entity always has a unique ID even if the bulb was
not successfully discovered.

Signed-off-by: Avi Miller <me@dje.li>

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-12 20:05:41 -10:00
..
translations [ci skip] Translation update 2022-05-21 00:22:49 +00:00
__init__.py
config_flow.py Update pylint plugin to validate _async_has_devices (#66512) 2022-02-14 18:10:50 +01:00
const.py
light.py Refactor LIFX discovery to prevent duplicate discovery response handling (#72213) 2022-06-12 20:05:41 -10:00
manifest.json Bump aiolifx to 0.8.1 (#72897) 2022-06-03 08:09:00 +02:00
services.yaml Prettify yaml (services.yaml) (#68878) 2022-03-30 09:48:06 +02:00
strings.json