mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Do not expect Hue light to have a brightness
This commit is contained in:
parent
efeb5c5290
commit
73ec049d1c
@ -194,7 +194,7 @@ class HueLight(Light):
|
|||||||
@property
|
@property
|
||||||
def brightness(self):
|
def brightness(self):
|
||||||
""" Brightness of this light between 0..255. """
|
""" Brightness of this light between 0..255. """
|
||||||
return self.info['state']['bri']
|
return self.info['state'].get('bri')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def xy_color(self):
|
def xy_color(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user