Skip to content

Commit af83533

Browse files
adrianlztfabaff
authored andcommitted
Fix example to work correctly (home-assistant#1912)
1 parent 1966a01 commit af83533

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/_components/alexa.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ alexa:
158158
{%- for state in states.device_tracker -%}
159159
{%- if state.name.lower() == User.lower() -%}
160160
{{ state.name }} is at {{ state.state }}
161+
{%- elif loop.last -%}
162+
I am sorry, I do not know where {{ User }} is.
161163
{%- endif -%}
162164
{%- else -%}
163-
I am sorry, I do not know where {{ User }} is.
165+
Sorry, I don't have any trackers registered.
164166
{%- endfor -%}
165167
card:
166168
type: simple

0 commit comments

Comments
 (0)