mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Merge pull request #34 from andythigpen/fix-hue-xy
Fix issue with some bulbs missing 'xy' attribute.
This commit is contained in:
commit
69463308f5
@ -159,7 +159,8 @@ class HueLight(ToggleDevice):
|
|||||||
|
|
||||||
if self.is_on:
|
if self.is_on:
|
||||||
attr[ATTR_BRIGHTNESS] = self.info['state']['bri']
|
attr[ATTR_BRIGHTNESS] = self.info['state']['bri']
|
||||||
attr[ATTR_XY_COLOR] = self.info['state']['xy']
|
if 'xy' in self.info['state']:
|
||||||
|
attr[ATTR_XY_COLOR] = self.info['state']['xy']
|
||||||
|
|
||||||
return attr
|
return attr
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user