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