We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da502a8 commit e9f581cCopy full SHA for e9f581c
source/_components/cover.template.markdown
@@ -109,10 +109,10 @@ Template Cover may get an `unknown` state during startup. This results in error
109
messages in your log file until that platform has completed loading.
110
If you use `is_state()` function in your template, you can avoid this situation.
111
For example, you would replace
112
-{% raw %}`{{ is_state('switch.source', 'on') }}`{% endraw %}
+{% raw %}`{{ states.cover.source.state == 'open' }}`{% endraw %}
113
with this equivalent that returns `true`/`false` and never gives an unknown
114
result:
115
+{% raw %}`{{ is_state('cover.source', 'open') }}`{% endraw %}
116
117
## Optimistic Mode
118
0 commit comments