From f5c6ad24c4094e052c52f3252d535e4a5db3107f Mon Sep 17 00:00:00 2001 From: Avi Miller Date: Fri, 3 Jun 2022 16:09:00 +1000 Subject: [PATCH] Bump aiolifx to 0.8.1 (#72897) 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 --- homeassistant/components/lifx/light.py | 3 +-- homeassistant/components/lifx/manifest.json | 2 +- requirements_all.txt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/lifx/light.py b/homeassistant/components/lifx/light.py index 31e973874d9..ea9bbeb91a2 100644 --- a/homeassistant/components/lifx/light.py +++ b/homeassistant/components/lifx/light.py @@ -73,7 +73,6 @@ MESSAGE_RETRIES = 3 UNAVAILABLE_GRACE = 90 FIX_MAC_FW = AwesomeVersion("3.70") -SWITCH_PRODUCT_IDS = [70, 71, 89] SERVICE_LIFX_SET_STATE = "set_state" @@ -403,7 +402,7 @@ class LIFXManager: # Get the product info first so that LIFX Switches # can be ignored. version_resp = await ack(bulb.get_version) - if version_resp and bulb.product in SWITCH_PRODUCT_IDS: + if version_resp and lifx_features(bulb)["relays"]: _LOGGER.debug( "Not connecting to LIFX Switch %s (%s)", str(bulb.mac_addr).replace(":", ""), diff --git a/homeassistant/components/lifx/manifest.json b/homeassistant/components/lifx/manifest.json index a7f266b6f7d..06e7b292ac6 100644 --- a/homeassistant/components/lifx/manifest.json +++ b/homeassistant/components/lifx/manifest.json @@ -3,7 +3,7 @@ "name": "LIFX", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/lifx", - "requirements": ["aiolifx==0.7.1", "aiolifx_effects==0.2.2"], + "requirements": ["aiolifx==0.8.1", "aiolifx_effects==0.2.2"], "dependencies": ["network"], "homekit": { "models": [ diff --git a/requirements_all.txt b/requirements_all.txt index 35b82892119..eaa63c401ba 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -181,7 +181,7 @@ aiokafka==0.6.0 aiokef==0.2.16 # homeassistant.components.lifx -aiolifx==0.7.1 +aiolifx==0.8.1 # homeassistant.components.lifx aiolifx_effects==0.2.2