This commit is contained in:
joBr99
2023-12-15 14:16:59 +01:00
parent 9c6f24f984
commit a5bfb9388f
3 changed files with 8 additions and 2 deletions

View File

@@ -76,8 +76,10 @@ class LovelaceUIPanel:
ha_control.wait_for_ha_cache()
#request templates on cards
libs.home_assistant.cache_template(self.settings.get("sleepBrightness"))
libs.home_assistant.cache_template(self.settings.get("screenBrightness"))
if self.settings.get("sleepBrightness").startswith("ha:"):
libs.home_assistant.cache_template(self.settings.get("sleepBrightness"))
if 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"):
if c.qrcode.startswith("ha:"):