mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
Fix broken templating
This commit is contained in:
parent
669b736ac1
commit
e9aad88641
@ -61,7 +61,7 @@ fan:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
value_template:
|
value_template:
|
||||||
description: "Defines a template to get the state of the fan. Valid value: 'on'/'off'
|
description: "Defines a template to get the state of the fan. Valid value: 'on'/'off'"
|
||||||
required: true
|
required: true
|
||||||
type: template
|
type: template
|
||||||
speed_template:
|
speed_template:
|
||||||
|
@ -140,7 +140,7 @@ With strings
|
|||||||
|
|
||||||
```text
|
```text
|
||||||
{% raw %}{% set tracker_name = "paulus"%}
|
{% raw %}{% set tracker_name = "paulus"%}
|
||||||
|
|
||||||
{% if states("device_tracker." + tracker_name) != "unknown" %}
|
{% if states("device_tracker." + tracker_name) != "unknown" %}
|
||||||
{{ state_attr("device_tracker." + tracker_name, "battery")}}
|
{{ state_attr("device_tracker." + tracker_name, "battery")}}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user