mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 15:34:26 +01:00
set maxsplit to 3 for iText #270
This commit is contained in:
@@ -179,8 +179,8 @@ 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(".")[1]
|
key = entityId.split(".", 3)[1]
|
||||||
value = entityId.split(".")[2]
|
value = entityId.split(".", 3)[2]
|
||||||
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~{key}~{value}"
|
||||||
if not self._ha_api.entity_exists(entityId):
|
if not self._ha_api.entity_exists(entityId):
|
||||||
|
|||||||
Reference in New Issue
Block a user