Hue: Guard for when there is no brightness (#35151)
This commit is contained in:
1 parent
ab2c3a2130
commit
0d8390b9df
1 file changed
+3
@@ -259,6 +259,9 @@ class HueLight(Light):
|
||||
else:
|
||||
bri = self.light.state.get("bri")
|
||||
|
||||
if bri is None:
|
||||
return bri
|
||||
|
||||
return hue_brightness_to_hass(bri)
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user