This commit is contained in:
joBr99
2023-12-15 14:29:31 +01:00
parent a5bfb9388f
commit 723be0735e
2 changed files with 3 additions and 3 deletions

View File

@@ -76,9 +76,9 @@ class LovelaceUIPanel:
ha_control.wait_for_ha_cache()
#request templates on cards
if self.settings.get("sleepBrightness").startswith("ha:"):
if isinstance(self.settings.get("sleepBrightness",""), str) and self.settings.get("sleepBrightness", "").startswith("ha:"):
libs.home_assistant.cache_template(self.settings.get("sleepBrightness"))
if self.settings.get("screenBrightness").startswith("ha:"):
if isinstance(self.settings.get("sleepBrightness",""), str) and self.settings.get("screenBrightness", "").startswith("ha:"):
libs.home_assistant.cache_template(self.settings.get("screenBrightness"))
for c in self.cards.values():
if hasattr(c, "qrcode"):