Improvement to sensor template with for loop

Maybe all of them should be provided as datetime objects going forward? This was recently done for timestamps in sensor entities I think.

It was, it’s coming in 2021.12 but there’s some scragglers left. As for the datetimes, I’m not sure what they should be. Might be a q for the team

Thank you for all the replies/answers/suggestions. They’ve helped me understand a little more the templating structure and jinja.

1 Like