diff --git a/source/_components/cover.template.markdown b/source/_components/cover.template.markdown index 951e750544a..6d130751268 100644 --- a/source/_components/cover.template.markdown +++ b/source/_components/cover.template.markdown @@ -109,10 +109,10 @@ Template Cover may get an `unknown` state during startup. This results in error messages in your log file until that platform has completed loading. If you use `is_state()` function in your template, you can avoid this situation. For example, you would replace -{% raw %}`{{ is_state('switch.source', 'on') }}`{% endraw %} +{% raw %}`{{ states.cover.source.state == 'open' }}`{% endraw %} with this equivalent that returns `true`/`false` and never gives an unknown result: -{% raw %}`{{ is_state('switch.source', 'on') }}`{% endraw %} +{% raw %}`{{ is_state('cover.source', 'open') }}`{% endraw %} ## Optimistic Mode