removed additional delimiter for weather

This commit is contained in:
Johannes
2022-04-01 17:24:40 +02:00
parent 2dba199f50
commit 20a289eb52
4 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ change the page type:
### screensaver page
`weatherUpdate~? tMainIcon? tMainText? tMRIcon? tMR? tForecast1? tF1Icon? tForecast1Val? tForecast2? tF2Icon? tForecast2Val?tForecast3? tF3Icon? tForecast3Val?tForecast4? tF4Icon? tForecast4Val?optionalLayoutIcon?optionalLayoutText`
`weatherUpdate~tMainIcon~tMainText~tForecast1~tF1Icon~tForecast1Val~tForecast2~tF2Icon~tForecast2Val~tForecast3~tF3Icon~tForecast3Val~tForecast4~tF4Icon~tForecast4Val~optionalLayoutIcon~optionalLayoutText`
### cardEntities Page

Binary file not shown.

Binary file not shown.

View File

@@ -98,9 +98,9 @@ class LuiPagesGen(object):
icon = get_icon_id_ha("sensor", state=entity.state, device_class=entity.attributes.get("device_class", ""), overwrite=icon)
unit_of_measurement = entity.attributes.get("unit_of_measurement", "")
down = f"{entity.state} {unit_of_measurement}"
weather_res+=f"?{up}?{icon}?{down}"
weather_res+=f"~{up}~{icon}~{down}"
self._send_mqtt_msg(f"weatherUpdate~?{icon_cur}?{text_cur}{weather_res}")
self._send_mqtt_msg(f"weatherUpdate~{icon_cur}~{text_cur}{weather_res}")
def generate_entities_item(self, item):
icon = None