Skip to content

Commit e9f581c

Browse files
humbeeccfrenck
authored andcommitted
Fix example in considerations (home-assistant#10332)
1 parent da502a8 commit e9f581c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/_components/cover.template.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ Template Cover may get an `unknown` state during startup. This results in error
109109
messages in your log file until that platform has completed loading.
110110
If you use `is_state()` function in your template, you can avoid this situation.
111111
For example, you would replace
112-
{% raw %}`{{ is_state('switch.source', 'on') }}`{% endraw %}
112+
{% raw %}`{{ states.cover.source.state == 'open' }}`{% endraw %}
113113
with this equivalent that returns `true`/`false` and never gives an unknown
114114
result:
115-
{% raw %}`{{ is_state('switch.source', 'on') }}`{% endraw %}
115+
{% raw %}`{{ is_state('cover.source', 'open') }}`{% endraw %}
116116

117117
## Optimistic Mode
118118

0 commit comments

Comments
 (0)