Fix broken templating

This commit is contained in:
Paulus Schoutsen 2018-05-06 08:54:51 -04:00
parent 669b736ac1
commit e9aad88641
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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 %}