mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-20 12:46:45 +00:00
Too many updates to cover
This commit is contained in:
6
templates/jarvis_interuptions.yaml
Normal file → Executable file
6
templates/jarvis_interuptions.yaml
Normal file → Executable file
@@ -1,5 +1,5 @@
|
||||
>
|
||||
{% macro getInteruption() %}
|
||||
{% macro getIntro() %}
|
||||
{{ [
|
||||
"Pardon me,",
|
||||
"Excuse me,",
|
||||
@@ -7,6 +7,8 @@
|
||||
"I thought you might like to know."
|
||||
] | random }}
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{# a macro that removes all newline characters, empty spaces, and returns formatted text #}
|
||||
{%- macro cleanup(data) -%}
|
||||
{%- for item in data.split("\n") if item | trim != "" -%}
|
||||
@@ -15,7 +17,7 @@
|
||||
|
||||
{# a macro to call all macros :) #}
|
||||
{%- macro mother_of_all_macros() -%}
|
||||
{{ getInteruption() }}
|
||||
{{ getIntro() }}
|
||||
|
||||
{%- endmacro -%}
|
||||
|
||||
|
Reference in New Issue
Block a user