No that is not correct. You have to move all your command line sensors.
configuration.yaml
command_line:
- sensor:
name: "CPU Temperature"
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
- sensor:
name: Host Operating System
command: 'curl http://supervisor/host/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''.data.operating_system'' | sed ''s/"//g'''
- sensor:
name: Supervisor Updates
command: 'curl http://supervisor/supervisor/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"newest_version":.data.version_latest,"current_version":.data.version,"update_available":.data.update_available,"addons":[.data.addons[] | select(.update_available)]}'''
value_template: "{{ value_json.addons | length }}"
unit_of_measurement: pending update(s)
json_attributes:
- update_available
- newest_version
- current_version
- addons
You can use an include if you want. e.g.
command_line: !include command_line.yaml
Then everything above, except the first line “command_line:” goes in command_line.yaml instead of configuration.yaml
Note: you no longer need that last sensor. It is all provided by the supervisor integration.