mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-20 22:47:01 +01:00
implements #1351
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user