added light with brightness only

This commit is contained in:
Johannes
2022-03-19 21:30:00 +01:00
parent e5706d848f
commit ba887cf60c

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}"