From 1e9de194d3a377485a31014fec2fcaabfd8df62d Mon Sep 17 00:00:00 2001 From: Hans Oischinger Date: Tue, 17 Jan 2023 11:34:38 +0100 Subject: [PATCH] Add vicare buffer top/main temperature sensors (#79466) Co-authored-by: Franck Nijhof fixes undefined --- homeassistant/components/vicare/sensor.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/homeassistant/components/vicare/sensor.py b/homeassistant/components/vicare/sensor.py index 9f74df79e2b..0488f068452 100644 --- a/homeassistant/components/vicare/sensor.py +++ b/homeassistant/components/vicare/sensor.py @@ -452,6 +452,22 @@ GLOBAL_SENSORS: tuple[ViCareSensorEntityDescription, ...] = ( device_class=SensorDeviceClass.ENERGY, state_class=SensorStateClass.TOTAL_INCREASING, ), + ViCareSensorEntityDescription( + key="buffer top temperature", + name="Buffer top temperature", + native_unit_of_measurement=TEMP_CELSIUS, + value_getter=lambda api: api.getBufferTopTemperature(), + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + ), + ViCareSensorEntityDescription( + key="buffer main temperature", + name="Buffer main temperature", + native_unit_of_measurement=TEMP_CELSIUS, + value_getter=lambda api: api.getBufferMainTemperature(), + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + ), ) CIRCUIT_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (