This commit is contained in:
joBr99
2023-11-27 00:45:56 +01:00
parent 112fe16f29
commit 7ffe37117b
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: NSPanel Lovelace UI Addon
version: "4.7.52"
version: "4.7.53"
slug: nspanel-lovelace-ui
description: NSPanel Lovelace UI Addon
services:

View File

@@ -11,6 +11,7 @@ from libs.helper import rgb_dec565, scale
import time
import threading
import datetime
import json
class HAEntity(panel_cards.Entity):
def __init__(self, locale, config, panel):
@@ -30,7 +31,7 @@ class HAEntity(panel_cards.Entity):
self.icon_overwrite = libs.home_assistant.get_template(config_icon)
config_color = self.config.get("color", None)
if config_color and isinstance(config_color, str) and config_color.startswith("ha:"):
self.color_overwrite = libs.home_assistant.get_template(config_color)[3:]
self.color_overwrite = json.loads(libs.home_assistant.get_template(config_color)[3:])
if self.etype in ["delete", "navigate", "iText"]:
out = super().render()