fix a couple issues in sensor.command_line doc (#4330)

This fixes 2 issues:

- Brightness is not measured as celsius
- curly braces must be escaped with `{% raw %}`
This commit is contained in:
Davide Setti 2018-01-03 18:41:01 +01:00 committed by Fabian Affolter
parent ea7d6fd1c1
commit bf0c79ebdb

View File

@ -143,7 +143,6 @@ sensor:
- platform: command_line
name: Brightness
command: "python3 /path/to/script/arest-value.py"
unit_of_measurement: "°C"
```
### {% linkable_title Usage of templating in `command:` %}
@ -155,6 +154,6 @@ sensor:
sensor:
- platform: command_line
name: wind direction
command: 'sh /home/pi/.homeassistant/scripts/wind_direction.sh {{ states.sensor.wind_direction.state }}'
command: 'sh /home/pi/.homeassistant/scripts/wind_direction.sh {% raw %}{{ states.sensor.wind_direction.state }}{% endraw %}'
unit_of_measurement: "Direction"
```