home-assistant: Remove Tonight's Forecast sensor
This template sensor will be migrated to a helper, since Home Assitant removed the `forecast` attribute of weather sensors and now requires calling an action (service) to get those data.
This commit is contained in:
@@ -104,15 +104,6 @@ sensor:
|
||||
|
||||
template:
|
||||
- sensor:
|
||||
- name: "Tonight's Forecast"
|
||||
device_class: temperature
|
||||
unit_of_measurement: °C
|
||||
state: >-
|
||||
{{ state_attr('weather.kojc_daynight', 'forecast')
|
||||
| rejectattr('is_daytime')
|
||||
| map(attribute='temperature')
|
||||
| first }}
|
||||
|
||||
- name: Apc1500 Load
|
||||
device_class: power
|
||||
unit_of_measurement: W
|
||||
|
||||
Reference in New Issue
Block a user