mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
Updated Joke Logic with a Simplier (I think) If Statement.
This commit is contained in:
@@ -229,11 +229,11 @@ tweet_engine_setup:
|
||||
{{ images[topic]|random }}
|
||||
{%- endmacro -%}
|
||||
|
||||
{% if topic == "joke" -%}
|
||||
{% if pick == "joke" -%}
|
||||
{{ "\"/config/www/custom_ui/floorplan/images/branding/jokes/Tweet_" ~ range(1, 72) | random ~ ".png\"" }}
|
||||
{%- else -%}
|
||||
{{ image(pick) }}
|
||||
{%- endif -%}
|
||||
{%- else -%}
|
||||
{{ image(pick) }}
|
||||
{%- endif -%}
|
||||
|
||||
tweet_engine_image:
|
||||
sequence:
|
||||
|
Reference in New Issue
Block a user