You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
020-07-19 22:01:32 ERROR (MainThread) [homeassistant.components.template.sensor] Could not render template Remain cycles: UndefinedError: 'str object' has no attribute 'minute'
This seems to be because the following line in flow.yaml:
{% set nextcycle = strptime(states('sensor.cycle_pool'),'%H:%M').hour + strptime(states('sensor.cycle_pool'),'%H:%M').minute|int/60 %}
sensor.cycle_pool seems to be a string and not a date, or the template seems to think so. It seems that strptime implementation is broken honestly.
Curious if this happens to other people too.
Hass logs:
This seems to be because the following line in flow.yaml:
sensor.cycle_pool seems to be a string and not a date, or the template seems to think so. It seems that strptime implementation is broken honestly.
This seems similar to:
https://community.home-assistant.io/t/convert-string-to-time/37303/2
The text was updated successfully, but these errors were encountered: