Do not expect Hue light to have a brightness
This commit is contained in:
1 parent
efeb5c5290
commit
73ec049d1c
1 file changed
+1
-1
@@ -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):
|
||||||
|
|||||||
Reference in new issue
Block a user