mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-26 09:24:24 +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"]
|
||||
LOGGER.info("Setting dim value to %s", sorted_timesets[index-1])
|
||||
found_current_dim_value = True
|
||||
# still no dim value
|
||||
if not found_current_dim_value:
|
||||
self.current_screensaver_brightness = sorted_timesets[-1]["value"]
|
||||
# still no dim value
|
||||
if not found_current_dim_value:
|
||||
current_screensaver_brightness = sorted_timesets[-1]["value"]
|
||||
return current_screensaver_brightness
|
||||
|
||||
def weather_update(self, kwargs):
|
||||
@@ -221,4 +221,4 @@ class LuiController(object):
|
||||
|
||||
# for alarm page
|
||||
if button_type in ["disarm", "arm_home", "arm_away", "arm_night", "arm_vacation"]:
|
||||
self._ha_api.get_entity(entity_id).call_service(f"alarm_{button_type}", code=value)
|
||||
self._ha_api.get_entity(entity_id).call_service(f"alarm_{button_type}", code=value)
|
||||
|
||||
Reference in New Issue
Block a user