adjust to firmware change

This commit is contained in:
Johannes
2022-05-24 16:42:25 +02:00
parent ee128b5641
commit 06c82374ee
2 changed files with 11 additions and 27 deletions

View File

@@ -123,8 +123,7 @@ class LuiPagesGen(object):
weather_res+=f"~{up}~{icon}~{down}"
altLayout = ""
alternativeEnable = self._config._config_screensaver.raw_config.get("alternativeLayout", False)
if alternativeEnable:
if self._config._config_screensaver.raw_config.get("alternativeLayout", False):
altLayout = f"~{get_icon_id('water-percent')}~{we.attributes.humidity} %"
self._send_mqtt_msg(f"weatherUpdate~{icon_cur}~{text_cur}{weather_res}{altLayout}")
@@ -133,7 +132,7 @@ class LuiPagesGen(object):
if theme is not None:
if not ("autoWeather" in theme and theme["autoWeather"]):
state = None
self._send_mqtt_msg(get_screensaver_color_output(theme=theme, state=state, alternativeEnable=alternativeEnable))
self._send_mqtt_msg(get_screensaver_color_output(theme=theme, state=state))
def generate_entities_item(self, entity, cardType):
entityId = entity.entityId