mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +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
|
```yaml
|
||||||
{{ iif(is_state('light.kitchen', 'on'), 'Yes', 'No') }}
|
{{ iif(is_state('light.kitchen', 'on'), 'Yes', 'No') }}
|
||||||
{{ is_state('light.kitchen', 'on') | iif('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 %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user