Fix Weather.com attributes in template weather stations
This commit is contained in:
@@ -64,7 +64,7 @@ weather:
|
|||||||
forecast_hourly_template: >
|
forecast_hourly_template: >
|
||||||
{% set forecasts = [
|
{% set forecasts = [
|
||||||
states.sensor.weatherflow_hourly_weather_forecast.attributes,
|
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
|
states.sensor.pirateweather_hourly_weather_forecast.attributes
|
||||||
] %}
|
] %}
|
||||||
{{ forecasts | selectattr('forecast','defined') | map(attribute='forecast') | list | first }}
|
{{ forecasts | selectattr('forecast','defined') | map(attribute='forecast') | list | first }}
|
||||||
@@ -169,7 +169,7 @@ weather:
|
|||||||
forecast_hourly_template: >
|
forecast_hourly_template: >
|
||||||
{% set forecasts = [
|
{% set forecasts = [
|
||||||
states.sensor.weatherflow_hourly_weather_forecast.attributes,
|
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.weather.tomorrow_io_stratton_ave_hourly.attributes,
|
||||||
states.sensor.pirateweather_hourly_weather_forecast.attributes
|
states.sensor.pirateweather_hourly_weather_forecast.attributes
|
||||||
] %}
|
] %}
|
||||||
|
|||||||
Reference in New Issue
Block a user