mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 07:24:24 +01:00
Update pages.py
This commit is contained in:
@@ -179,10 +179,10 @@ class LuiPagesGen(object):
|
|||||||
else:
|
else:
|
||||||
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~page not found~"
|
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~page not found~"
|
||||||
if entityType == "iText":
|
if entityType == "iText":
|
||||||
key = entityId.split(".", 3)[1]
|
value = entityId.split(".", 2)[1]
|
||||||
value = entityId.split(".", 3)[2]
|
name = name if name is not None else "conf name missing"
|
||||||
icon_id = get_icon_id(icon) if icon is not None else get_icon_id("alert-circle-outline")
|
icon_id = get_icon_id(icon) if icon is not None else get_icon_id("alert-circle-outline")
|
||||||
return f"~text~{entityId}~{icon_id}~17299~{key}~{value}"
|
return f"~text~{entityId}~{icon_id}~17299~{name}~{value}"
|
||||||
if not self._ha_api.entity_exists(entityId):
|
if not self._ha_api.entity_exists(entityId):
|
||||||
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~Not found check~ apps.yaml"
|
return f"~text~{entityId}~{get_icon_id('alert-circle-outline')}~17299~Not found check~ apps.yaml"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user