Adopted deprecated YAML config change for command_line based entities.

This commit is contained in:
Marcus Scholz 2023-06-09 12:14:24 +02:00
parent a57178b5e1
commit 929d6b1830
2 changed files with 1 additions and 6 deletions

View File

@ -31,6 +31,7 @@ homeassistant:
# Additional sensors # Additional sensors
sensor: !include sensors.yaml sensor: !include sensors.yaml
command_line: !include commandline.yaml
utility_meter: !include utility_meters.yaml utility_meter: !include utility_meters.yaml
# MQTT sensors # MQTT sensors

View File

@ -3,12 +3,6 @@
display_options: display_options:
- 'time' - 'time'
- 'date' - 'date'
# Raspberry Pi CPU temp
- platform: command_line
name: "CPU Temp"
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: "{{ value | multiply(0.001) | round(1) }}"
# Database size sensor # Database size sensor
- platform: sql - platform: sql
db_url: !secret ha_recorder_dburl db_url: !secret ha_recorder_dburl