mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Mealie example template fix (#34091)
This commit is contained in:
parent
943046de5a
commit
e8e1ec23bd
@ -145,7 +145,7 @@ template:
|
|||||||
unique_id: mealie_dinner_today
|
unique_id: mealie_dinner_today
|
||||||
state: >
|
state: >
|
||||||
{% for meal in result.mealplan if meal.entry_type == "dinner" -%}
|
{% for meal in result.mealplan if meal.entry_type == "dinner" -%}
|
||||||
{{ meal.recipe['name'] if meal.recipe is not none else meal.title }}
|
{{ meal.recipe['name'] if meal.recipe is not none else meal.title -}}
|
||||||
{{ ", " if not loop.last }}
|
{{ ", " if not loop.last }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user