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 @@
>
{# Kallen Nightly Briefing #}
{%- macro getReport() -%}
{% from 'speech.jinja' import dadjoke %}
<p>
Good Evening, Collin, it is currently {{ now().strftime("%I:%M %p") }}.
{{ [ 'My sensors are detecting a strange smell. I am running diagnostics. But in the mean time, you should start a shower.',
@ -112,7 +113,7 @@
</p>
<p>
Just for you, here is a random dad joke <break time="1s"/> {{ states('sensor.random_joke') }}
{{ dadjoke() }}
</p>
<p>