Fix Weather.com attributes in template weather stations

This commit is contained in:
2025-05-21 20:45:59 -04:00
parent d38cf59812
commit 0dc7d0f8e4

View File

@ -64,7 +64,7 @@ weather:
forecast_hourly_template: >
{% set forecasts = [
states.sensor.weatherflow_hourly_weather_forecast.attributes,
states.sensor.weather_com_hourly_weather_forecast,
states.sensor.weather_com_hourly_weather_forecast.attributes,
states.sensor.pirateweather_hourly_weather_forecast.attributes
] %}
{{ forecasts | selectattr('forecast','defined') | map(attribute='forecast') | list | first }}
@ -169,7 +169,7 @@ weather:
forecast_hourly_template: >
{% set forecasts = [
states.sensor.weatherflow_hourly_weather_forecast.attributes,
states.sensor.weather_com_hourly_weather_forecast,
states.sensor.weather_com_hourly_weather_forecast.attributes,
states.weather.tomorrow_io_stratton_ave_hourly.attributes,
states.sensor.pirateweather_hourly_weather_forecast.attributes
] %}