mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-18 19:06:58 +01:00
fix screensaver brightness
This commit is contained in:
@@ -86,9 +86,9 @@ class LuiController(object):
|
|||||||
current_screensaver_brightness = sorted_timesets[index-1]["value"]
|
current_screensaver_brightness = sorted_timesets[index-1]["value"]
|
||||||
LOGGER.info("Setting dim value to %s", sorted_timesets[index-1])
|
LOGGER.info("Setting dim value to %s", sorted_timesets[index-1])
|
||||||
found_current_dim_value = True
|
found_current_dim_value = True
|
||||||
# still no dim value
|
# still no dim value
|
||||||
if not found_current_dim_value:
|
if not found_current_dim_value:
|
||||||
self.current_screensaver_brightness = sorted_timesets[-1]["value"]
|
current_screensaver_brightness = sorted_timesets[-1]["value"]
|
||||||
return current_screensaver_brightness
|
return current_screensaver_brightness
|
||||||
|
|
||||||
def weather_update(self, kwargs):
|
def weather_update(self, kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user