Fix example to work correctly (#1912)
This commit is contained in:
parent
1966a015de
commit
af8353376c
1 changed files with 3 additions and 1 deletions
|
@ -158,9 +158,11 @@ alexa:
|
||||||
{%- for state in states.device_tracker -%}
|
{%- for state in states.device_tracker -%}
|
||||||
{%- if state.name.lower() == User.lower() -%}
|
{%- if state.name.lower() == User.lower() -%}
|
||||||
{{ state.name }} is at {{ state.state }}
|
{{ state.name }} is at {{ state.state }}
|
||||||
|
{%- elif loop.last -%}
|
||||||
|
I am sorry, I do not know where {{ User }} is.
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
I am sorry, I do not know where {{ User }} is.
|
Sorry, I don't have any trackers registered.
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
card:
|
card:
|
||||||
type: simple
|
type: simple
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue