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
|
||||
type: string
|
||||
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
|
||||
type: template
|
||||
speed_template:
|
||||
|
@ -140,7 +140,7 @@ With strings
|
||||
|
||||
```text
|
||||
{% raw %}{% set tracker_name = "paulus"%}
|
||||
|
||||
|
||||
{% if states("device_tracker." + tracker_name) != "unknown" %}
|
||||
{{ state_attr("device_tracker." + tracker_name, "battery")}}
|
||||
{% else %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user