From d64b38c548d0cdc56571b7c75fa026b1bb755f42 Mon Sep 17 00:00:00 2001 From: Christopher Fenner Date: Sat, 2 Dec 2023 20:55:07 +0100 Subject: [PATCH] add eco sensor entity --- homeassistant/components/vicare/sensor.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homeassistant/components/vicare/sensor.py b/homeassistant/components/vicare/sensor.py index 875d8790c522..7b299582165d 100644 --- a/homeassistant/components/vicare/sensor.py +++ b/homeassistant/components/vicare/sensor.py @@ -502,6 +502,14 @@ CIRCUIT_SENSORS: tuple[ViCareSensorEntityDescription, ...] = ( device_class=SensorDeviceClass.TEMPERATURE, state_class=SensorStateClass.MEASUREMENT, ), + ViCareSensorEntityDescription( + key="eco_temperature", + translation_key="eco_temperature", + entity_category=EntityCategory.CONFIG, + device_class=SensorDeviceClass.TEMPERATURE, + native_unit_of_measurement=UnitOfTemperature.CELSIUS, + value_getter=lambda api: api.getDesiredTemperatureForProgram("eco"), + ), ) BURNER_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (