Bump aiolifx to 0.8.1 ()

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 .

Signed-off-by: Avi Miller <me@dje.li>
pull/72960/head
Avi Miller 2022-06-03 16:09:00 +10:00 committed by GitHub
parent fe1c3d3be8
commit f5c6ad24c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions
homeassistant/components/lifx

View File

@ -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(":", ""),

View File

@ -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": [

View File

@ -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