added light with brightness only

This commit is contained in:
joBr99
2022-03-19 21:30:00 +01:00
parent 04029051e8
commit a0dc17e245

View File

@@ -371,6 +371,9 @@ class NsPanelLovelaceUI:
if "brightness" in entity.attributes:
color = rgb_brightness(color, entity.attributes.brightness)
icon_color = rgb_dec565(color)
elif "brightness" in entity.attributes:
color = rgb_brightness(color, [253, 216, 53])
icon_color = rgb_dec565(color)
return f",{item_type},{item},1,{icon_color},{name},{switch_val}"