mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 19:55:10 +02:00
Hue: Guard for when there is no brightness (#35151)
This commit is contained in:
@@ -259,6 +259,9 @@ class HueLight(LightEntity):
|
|||||||
else:
|
else:
|
||||||
bri = self.light.state.get("bri")
|
bri = self.light.state.get("bri")
|
||||||
|
|
||||||
|
if bri is None:
|
||||||
|
return bri
|
||||||
|
|
||||||
return hue_brightness_to_hass(bri)
|
return hue_brightness_to_hass(bri)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Reference in New Issue
Block a user