mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-01-02 21:04:20 +01:00
fix for sleeptimer
This commit is contained in:
@@ -86,6 +86,9 @@ class LuiController(object):
|
||||
sleepBrightness = self.current_screensaver_brightness
|
||||
self.current_screen_brightness = kwargs['sbr']
|
||||
brightness = self.current_screen_brightness
|
||||
# same value for both values will break sleep timer of the firmware
|
||||
if sleepBrightness==brightness:
|
||||
sleepBrightness = sleepBrightness-1
|
||||
self._send_mqtt_msg(f"dimmode~{sleepBrightness}~{brightness}")
|
||||
|
||||
def calc_current_brightness(self, sleep_brightness_config):
|
||||
|
||||
Reference in New Issue
Block a user