Turn dad jokes into a macro
This commit is contained in:
@ -41,4 +41,12 @@ It is {{ now().strftime("%I:%M %p") }}.
|
||||
] | random }}
|
||||
{% endif %}
|
||||
It is {{ now().strftime("%I:%M %p") }}.
|
||||
{% endmacro %}
|
||||
|
||||
{% macro dadjoke() %}
|
||||
{{ [
|
||||
"Here is a random dad joke ",
|
||||
"In case you hadn't had enough idiotic humor today, here is a little more ",
|
||||
"For further proof that the developer responsible for my existence is an idiot, I present the following joke ",
|
||||
] | random }}<break time="1s"/> {{ states('sensor.random_joke') }}
|
||||
{% endmacro %}
|
Reference in New Issue
Block a user