From 12fd562361633025188bd7d756aefdf42fe4fc3b Mon Sep 17 00:00:00 2001 From: JudgeDredd Date: Sat, 15 Jul 2017 13:31:47 -0400 Subject: [PATCH] erorrs with degree symbol (#2973) I was unable to get the examples above working when using that degree symbol in the unit of measurement, removing that symbol fixed the problem. I did try pasting in a fresh degree symbol, and even tried using one from the HASS front end, but that didn't work. However, this example has been here for a long time and I can't find any other cases of complaints, so I figured i'd add a warning in the comments in case anyone else has the same problem. --- source/_components/sensor.command_line.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_components/sensor.command_line.markdown b/source/_components/sensor.command_line.markdown index ba1bee321aa..6bf2172cfcb 100644 --- a/source/_components/sensor.command_line.markdown +++ b/source/_components/sensor.command_line.markdown @@ -53,6 +53,7 @@ sensor: - platform: command_line name: HD Temperature command: "hddtemp -n /dev/sda" + # If errors occur, remove degree symbol below unit_of_measurement: "°C" ``` @@ -65,6 +66,7 @@ Thanks to the [`proc`](https://en.wikipedia.org/wiki/Procfs) file system, variou - platform: command_line name: CPU Temperature command: "cat /sys/class/thermal/thermal_zone0/temp" + # If errors occur, remove degree symbol below unit_of_measurement: "°C" value_template: '{% raw %}{{ value | multiply(0.001) }}{% endraw %}' ```