mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Fix example in considerations (#10332)
This commit is contained in:
parent
da502a87de
commit
e9f581cbb3
@ -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.
|
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.
|
If you use `is_state()` function in your template, you can avoid this situation.
|
||||||
For example, you would replace
|
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
|
with this equivalent that returns `true`/`false` and never gives an unknown
|
||||||
result:
|
result:
|
||||||
{% raw %}`{{ is_state('switch.source', 'on') }}`{% endraw %}
|
{% raw %}`{{ is_state('cover.source', 'open') }}`{% endraw %}
|
||||||
|
|
||||||
## Optimistic Mode
|
## Optimistic Mode
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user