Hi!
Since very recently I get this kind of errors that seem to be because of template sensors such as;
vakna_offset:
value_template: >
{% if as_timestamp(states.calendar.johan_stromquist.attributes.start_time) - as_timestamp( strptime(states.sensor.date__time.state, "%Y-%m-%d, %H:%M" ) ) < 12600 %}on{% else %}off{% endif %}
The errors are these;
Jan 19 19:21:55 hassbian hass[9836]: File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/template.py", line 196, in async_update
Jan 19 19:21:55 hassbian hass[9836]: self._state = self._template.async_render()
Jan 19 19:21:55 hassbian hass[9836]: File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/template.py", line 138, in async_render
Jan 19 19:21:55 hassbian hass[9836]: File "<template>", line 1, in top-level template code
Jan 19 19:21:55 hassbian hass[9836]: File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/template.py", line 546, in strptime
I have no clue, any help would be appreciated…
/Johan