Fix brightness and equal sleep and brightness

This commit is contained in:
illuzn
2022-06-05 15:02:42 +09:30
parent c8fc5395fa
commit 42bdda819b

View File

@@ -93,7 +93,7 @@ class LuiController(object):
sOBrightness = sleepOverride["brightness"]
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"]:
self._ha_api.log(f"sleepTracking setting brightness to 0")