mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-16 09:56:58 +01:00
fix
This commit is contained in:
@@ -18,7 +18,7 @@ def calculate_dim_values(sleepTracking, sleepTrackingZones, sleepBrightness, scr
|
||||
dimmode = sleepBrightness
|
||||
elif libs.home_assistant.is_existent(sleepBrightness):
|
||||
involved_entities.append(sleepBrightness)
|
||||
dimValueNormal = int(libs.home_assistant.get_entity_data(sleepBrightness).get('state', 10))
|
||||
dimmode = int(libs.home_assistant.get_entity_data(sleepBrightness).get('state', 10))
|
||||
|
||||
if screenBrightness:
|
||||
if isinstance(screenBrightness, int):
|
||||
|
||||
@@ -135,6 +135,7 @@ class LovelaceUIPanel:
|
||||
self.settings.get("screenBrightness"),
|
||||
self.settings.get("sleepOverride"),
|
||||
)
|
||||
print(dimValue, dimValueNormal)
|
||||
|
||||
backgroundColor = self.settings.get("defaultBackgroundColor", "ha-dark")
|
||||
if backgroundColor == "ha-dark":
|
||||
|
||||
Reference in New Issue
Block a user