Fix error on weather pages pic

The weather picture was broken when breaking down that line of code.
This commit is contained in:
Edward Firmo
2023-04-23 18:52:17 +02:00
committed by GitHub
parent c750971b0e
commit 9ef8287be7

View File

@@ -5453,8 +5453,7 @@ action:
- service: '{{ nextion.commands.printf }}'
data:
cmd: >
{{ page_name }}.weather_icon.pic=
{{
{{ page_name }}.weather_icon.pic={{
nextion.pics.weather[states(weather_entity) | default("unavailable") if weather_entity is string else "unavailable"] | default(None)
if condition == "unknown" and page_name == nextion.pages.weatherpages[0]
else nextion.pics.weather[condition] | default(None)