forked from platypush/platypush
FIX: reachable
is an attribute of state
This commit is contained in:
parent
8e06b8c727
commit
46df3a6a98
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue