Turn dad jokes into a macro
This commit is contained in:
@ -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') }} "
|
||||
|
Reference in New Issue
Block a user