Decided to use a jinja template instead of a sensor for E's sleep info
This commit is contained in:
4
custom_templates/formatting.jinja
Normal file
4
custom_templates/formatting.jinja
Normal file
@@ -0,0 +1,4 @@
|
||||
{%- macro cleanup(data) -%}
|
||||
{%- for item in data.split("\n") if item | trim != "" -%}
|
||||
{{ item | trim }} {% endfor -%}
|
||||
{%- endmacro -%}
|
Reference in New Issue
Block a user