From bf0c79ebdbae590a497ce33d2d077270d99c9e0d Mon Sep 17 00:00:00 2001 From: Davide Setti Date: Wed, 3 Jan 2018 18:41:01 +0100 Subject: [PATCH] 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 %}` --- source/_components/sensor.command_line.markdown | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/_components/sensor.command_line.markdown b/source/_components/sensor.command_line.markdown index b963bdee442..3d5f533fbeb 100644 --- a/source/_components/sensor.command_line.markdown +++ b/source/_components/sensor.command_line.markdown @@ -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" ```