Turn dad jokes into a macro

This commit is contained in:
2023-04-18 17:31:35 -04:00
parent 9ad2215b12
commit 4d597a7fe8
7 changed files with 25 additions and 20 deletions

View File

@ -1,6 +1,7 @@
>
{# Welcome Home #}
{%- macro getReport() -%}
{% from 'speech.jinja' import dadjoke %}
<p>
"Welcome home, "
{% if is_state('person.tony_stork','home') and is_state('person.christina_stork','home') %}
@ -147,7 +148,7 @@
</p>
<p>
Here is a random dad joke <break time="1s"/> {{ states('sensor.random_joke') }}
{{ dadjoke() }}
</p>
<p>