FIX: reachable is an attribute of state

This commit is contained in:
Fabio Manganiello 2022-05-01 01:58:05 +02:00
parent 8e06b8c727
commit 46df3a6a98
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -1068,7 +1068,7 @@ class LightHuePlugin(LightPlugin):
hue=entity.get('state', {}).get('hue'),
temperature=entity.get('state', {}).get('ct'),
colormode=entity.get('colormode'),
reachable=entity.get('reachable'),
reachable=entity.get('state', {}).get('reachable'),
x=entity['state']['xy'][0]
if entity.get('state', {}).get('xy')
else None,