implement disable on brightness slider

This commit is contained in:
joBr99
2022-03-06 16:08:13 +01:00
parent 84cc9e5d95
commit 93c8ebde9b
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -103,7 +103,7 @@ class NsPanelLovelanceUI:
if entity.attributes.get("brightness"):
brightness = int(self.scale(entity.attributes.brightness,(0,255),(0,100)))
else:
brightness = 255 # light can't be dimmed so show brightness as 100%
brightness = "disable"
if "color_temp" in entity.attributes.supported_color_modes:
# scale ha color temp range to 0-100
color_temp = self.scale(entity.attributes.color_temp,(entity.attributes.min_mireds, entity.attributes.max_mireds),(0,100))