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,7 +229,7 @@ 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) }}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 42 KiB |
Reference in New Issue
Block a user