This commit is contained in:
Johannes
2022-09-04 20:45:23 +02:00
committed by GitHub
parent c079ab6f28
commit 7134033f1f

View File

@@ -585,6 +585,9 @@ class LuiPagesGen(object):
brightness = "disable" brightness = "disable"
color_temp = "disable" color_temp = "disable"
color = "disable" color = "disable"
if "onoff" not in entity.attributes.supported_color_modes:
brightness = 0
if entity.state == "on": if entity.state == "on":
if "brightness" in entity.attributes: if "brightness" in entity.attributes:
# scale 0-255 brightness from ha to 0-100 # scale 0-255 brightness from ha to 0-100