mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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
|
||||
def brightness(self):
|
||||
""" Brightness of this light between 0..255. """
|
||||
return self.info['state']['bri']
|
||||
return self.info['state'].get('bri')
|
||||
|
||||
@property
|
||||
def xy_color(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user