From 85b2be97212e087fe2458c2838630bc934c8c0dc Mon Sep 17 00:00:00 2001 From: Gabriel Visser <61377476+gvssr@users.noreply.github.com> Date: Mon, 7 Feb 2022 11:59:37 +0100 Subject: [PATCH] Fix iif template example typo (#21529) --- source/_docs/configuration/templating.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index 2ba4d2b4839..66dfe920f50 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -369,7 +369,7 @@ Examples using `iif`: {{ is_state('light.kitchen', 'on') | iif('Yes', 'No') }} -{{ (state('light.kitchen') == 'on') | iif('Yes', 'No') }} +{{ (states('light.kitchen') == 'on') | iif('Yes', 'No') }} ``` {% endraw %}