mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-01-02 04:44:20 +01:00
add min brightness
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user