This commit is contained in:
Johannes
2025-07-31 20:37:31 +02:00
committed by GitHub
parent d53afb0b20
commit 65be5ffeb0

View File

@@ -387,8 +387,14 @@ class LuiPagesGen(object):
elif entityType == "weather": elif entityType == "weather":
entityTypePanel = "text" entityTypePanel = "text"
unit = get_attr_safe(entity, "temperature_unit", "") unit = get_attr_safe(entity, "temperature_unit", "")
rt = None
if type(item.stype) == str:
spintstr = item.stype.split(":")
rt = spintstr[0]
item.stype = int(spintstr[1])
if type(item.stype) == int: if type(item.stype) == int:
bits = get_attr_safe(entity, "supported_features", 0b0) bits = get_attr_safe(entity, "supported_features", 0b0)
if not rt:
rt = "daily" rt = "daily"
if bits & 0b001: #FORECAST_DAILY if bits & 0b001: #FORECAST_DAILY
rt = "daily" rt = "daily"