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

@ -2,6 +2,7 @@
{# Kallen Morning Briefing #}
{%- macro getReport() -%}
{% from 'time.jinja' import current_time_12hr, current_date_readout %}
{% from 'speech.jinja' import dadjoke %}
<p>
Good morning, Collin.
@ -158,6 +159,12 @@
</p>
<p>
{% if is_state('input_boolean.kallen_school_today','off') %}
{{ dadjoke() }}
{% endif %}
</p>
<p>
{% if is_state('input_boolean.kallen_briefing_extras','on') %}
"And now we have the following extra information to pass along. {{ states('input_text.kallen_briefing_extras') }} "