WTH, why do I have to specifically learn Jinja, when I can use python perfectly fine?

I have a list of Jinja and I get that it’s “lower barrier of entry”, convenient for very simple stuff.

  1. Big portion of users on HA knows programming.

  2. Actual language like Python can accomplish what Jinja can in a more readable and manageable format.

So why do we have to use Jinja for templates rather than writing our own function to return a string?

Makes things like extracting data from an array of data more complex than they need to.

This has been brought up in the past, it’d have to be a new integration. Falls out of WTH’s scope. In the meantime, you can use pyscript.