iantrich / config-template-card

📝 Templatable Lovelace Configurations
MIT License
434 stars 56 forks source link

Apply templated style to elements, both for element and card #80

Closed smonesi closed 2 years ago

smonesi commented 2 years ago

Following the recent issue with HA 2019.9 and the suggestion to use config-template-card on elements inside on the picture-elements card, not outside the picture-elements card itself, this PR provides proper support for styles in elements.

Compared to the current implementation:

I am not 100% sure the code is correct but according to my manual tests it does work.

The templated style is applied only for elements but I think it can be used also for the other types (cards and rows).

See also:

iantrich commented 2 years ago

Sorry for the delay