add min brightness

This commit is contained in:
Johannes
2022-03-25 15:46:03 +01:00
parent 4a0a2d3620
commit 77b05b8079
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class LuiPagesGen(object):
color = rgb_brightness(color, attr.brightness)
icon_color = rgb_dec565(color)
elif "brightness" in attr:
color = rgb_brightness([253, 216, 53], attr.brightness)
color = rgb_brightness([253, 216, 53], max(70, attr.brightness))
icon_color = rgb_dec565(color)
return icon_color

View File

@@ -76,4 +76,4 @@ class NsPanelLovelaceUIManager(hass.Hass):
topic_recv = cfg.get("panelRecvTopic")
LuiMqttListener(mqtt_api, topic_recv, controller, updater)
LOGGER.info('Started')
LOGGER.info('Started')