mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Fixed spelling mistake in template example. (#22483)
This commit is contained in:
parent
d7421dad47
commit
6672f6a680
@ -322,7 +322,7 @@ a "Yes" or "No" (or similar) value in templates. Some examples:
|
||||
```yaml
|
||||
{{ iif(is_state('light.kitchen', 'on'), 'Yes', 'No') }}
|
||||
{{ is_state('light.kitchen', 'on') | iif('Yes', 'No') }}
|
||||
{{ (state('light.kitchen') == 'on') | iif('Yes', 'No') }}
|
||||
{{ (states('light.kitchen') == 'on') | iif('Yes', 'No') }}
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user