Do not expect Hue light to have a brightness

pull/1417/head
Paulus Schoutsen 2016-02-27 14:27:16 -08:00
parent efeb5c5290
commit 73ec049d1c
1 changed files with 1 additions and 1 deletions

View File

@ -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):