Fix example in considerations (#10332)

This commit is contained in:
Chris Van Humbeeck 2019-09-10 22:36:24 +02:00 committed by Franck Nijhof
parent da502a87de
commit e9f581cbb3

View File

@ -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