bugfix on light detail page

This commit is contained in:
joBr99
2022-03-12 19:33:21 +01:00
parent 526259e88b
commit 903f9dd7bf
5 changed files with 37 additions and 37 deletions

View File

@@ -451,10 +451,7 @@ class NsPanelLovelanceUI:
if "color_temp" in entity.attributes:
# scale ha color temp range to 0-100
color_temp = int(self.scale(entity.attributes.color_temp,(entity.attributes.min_mireds, entity.attributes.max_mireds),(0,100)))
else:
color_temp = 0
else:
color_temp = "disable"
if "xy" in entity.attributes.supported_color_modes:
color = "enable"
else: