Hint that problems with °-symbol is caused by configuration not saved as UTF-8 (#10673)

* Update sensor.command_line.markdown

* Update sensor.command_line.markdown
This commit is contained in:
Erik Montnemery 2019-10-09 22:27:45 +02:00 committed by Franck Nijhof
parent a68adbbc0e
commit 02c6c8975b

View File

@ -75,7 +75,7 @@ sensor:
- platform: command_line - platform: command_line
name: HD Temperature name: HD Temperature
command: "hddtemp -n /dev/sda" command: "hddtemp -n /dev/sda"
# If errors occur, remove degree symbol below # If errors occur, make sure configuration file is encoded as UTF-8
unit_of_measurement: "°C" unit_of_measurement: "°C"
``` ```
@ -90,7 +90,7 @@ sensor:
- platform: command_line - platform: command_line
name: CPU Temperature name: CPU Temperature
command: "cat /sys/class/thermal/thermal_zone0/temp" command: "cat /sys/class/thermal/thermal_zone0/temp"
# If errors occur, remove degree symbol below # If errors occur, make sure configuration file is encoded as UTF-8
unit_of_measurement: "°C" unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}' value_template: '{{ value | multiply(0.001) | round(1) }}'
``` ```