Oops that one is on me!
try:
sensor:
- platform: command_line
name: CPU Temperature
command: 'cat /sys/class/thermal/thermal_zone0/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) }}'
See the example here: https://home-assistant.io/components/sensor.command_line/
Also, are you re-running Home Assistant each time you want to check?
If you are there’s a quicker way to check if the config files will work, just type in a terminal:
hass --script check_config