mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 15:34:26 +01:00
Fix brightness and equal sleep and brightness
This commit is contained in:
@@ -93,7 +93,7 @@ class LuiController(object):
|
|||||||
sOBrightness = sleepOverride["brightness"]
|
sOBrightness = sleepOverride["brightness"]
|
||||||
|
|
||||||
sleepBrightness = 0
|
sleepBrightness = 0
|
||||||
brightness = 100
|
brightness = self.calc_current_brightness(self._config.get("screenBrightness"))
|
||||||
|
|
||||||
if bst is not None and self._ha_api.entity_exists(bst) and self._ha_api.get_entity(bst).state in ["not_home", "off"]:
|
if bst is not None and self._ha_api.entity_exists(bst) and self._ha_api.get_entity(bst).state in ["not_home", "off"]:
|
||||||
self._ha_api.log(f"sleepTracking setting brightness to 0")
|
self._ha_api.log(f"sleepTracking setting brightness to 0")
|
||||||
|
|||||||
Reference in New Issue
Block a user