fix screensaver brightness

This commit is contained in:
joBr99
2022-03-28 23:27:59 +02:00
committed by GitHub
parent 1088373b70
commit 2318924593

View File

@@ -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):