From e2e91adbb795e080e9825938074350f19e58da04 Mon Sep 17 00:00:00 2001 From: Johannes Date: Thu, 15 Dec 2022 00:09:28 +0100 Subject: [PATCH] fix icon on screensaver --- apps/nspanel-lovelace-ui/luibackend/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index 31f609eb..3b0583eb 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -186,7 +186,7 @@ class LuiPagesGen(object): icon = statusIcon.get("icon") entity = apis.ha_api.get_entity(statusIcon.get("entity")) entityType = statusIcon.get("entity").split(".")[0] - icon = get_icon(entityType, state=entity.state, device_class=entity.attributes.get("device_class", ""), overwrite=icon) + icon = get_icon_ha(statusIcon.get("entity"), overwrite=icon) color = self.get_entity_color(entity, ha_type=entityType, overwrite=statusIcon.get("color", None)) status_res += f"~{icon}~{color}" altfont += f'~{statusIcon.get("altFont", "")}'