Fix error on weather pages pic
The weather picture was broken when breaking down that line of code.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user