From 6600466d4506a0a65ad52637153e229c07e3982f Mon Sep 17 00:00:00 2001 From: Daniel Shokouhi Date: Sat, 14 Sep 2019 11:17:10 -0700 Subject: [PATCH] Correct the example (#10362) --- source/_components/template.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/template.markdown b/source/_components/template.markdown index e8f5425de56..80345194c43 100644 --- a/source/_components/template.markdown +++ b/source/_components/template.markdown @@ -79,7 +79,7 @@ sensor: ### Startup -If you are using the state of a platform that takes extra time to load, the Template Sensor may get an `unknown` state during startup. To avoid this (and the resulting error messages in your log file), you can use `is_state()` function in your template. For example, you would replace {% raw %}`{{ is_state('switch.source', 'on') }}`{% endraw %} with this equivalent that returns `true`/`false` and never gives an `unknown` result: +If you are using the state of a platform that takes extra time to load, the Template Sensor may get an `unknown` state during startup. To avoid this (and the resulting error messages in your log file), you can use `is_state()` function in your template. For example, you would replace {% 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 %}