This commit is contained in:
Johannes
2025-08-02 21:22:31 +02:00
committed by GitHub
parent d01ccede57
commit a94cf0cef3

View File

@@ -388,7 +388,7 @@ class LuiPagesGen(object):
entityTypePanel = "text"
unit = get_attr_safe(entity, "temperature_unit", "")
rt = None
if type(item.stype) == str:
if type(item.stype) == str and ":" in item.stype and len(item.stype.split(":")) == 2:
spintstr = item.stype.split(":")
rt = spintstr[0]
item.stype = int(spintstr[1])
@@ -1094,3 +1094,4 @@ class LuiPagesGen(object):
self._send_mqtt_msg(f"pageType~popupNotify")
self._send_mqtt_msg(f"entityUpdateDetail~{ident}~{heading}~65535~{b1}~65535~{b2}~65535~{msg}~65535~0")