Hue: Guard for when there is no brightness (#35151)
parent
42750088b9
commit
5b7daa9e0c
|
@ -259,6 +259,9 @@ class HueLight(LightEntity):
|
|||
else:
|
||||
bri = self.light.state.get("bri")
|
||||
|
||||
if bri is None:
|
||||
return bri
|
||||
|
||||
return hue_brightness_to_hass(bri)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue