From 8b676f4252a37130b7f1206c7a460220aee16f52 Mon Sep 17 00:00:00 2001 From: tizzen33 <53906250+tizzen33@users.noreply.github.com> Date: Sun, 14 Nov 2021 16:59:09 +0100 Subject: [PATCH] Add Toon Humidity Sensor (#59488) Co-authored-by: Franck Nijhof --- homeassistant/components/toon/sensor.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/homeassistant/components/toon/sensor.py b/homeassistant/components/toon/sensor.py index 35f317a2638..30cde4632a9 100644 --- a/homeassistant/components/toon/sensor.py +++ b/homeassistant/components/toon/sensor.py @@ -13,6 +13,7 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( DEVICE_CLASS_ENERGY, DEVICE_CLASS_GAS, + DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_POWER, DEVICE_CLASS_TEMPERATURE, ENERGY_KILO_WATT_HOUR, @@ -141,6 +142,17 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = ( state_class=STATE_CLASS_MEASUREMENT, cls=ToonDisplayDeviceSensor, ), + ToonSensorEntityDescription( + key="current_humidity", + name="Humidity", + section="thermostat", + measurement="current_humidity", + native_unit_of_measurement=PERCENTAGE, + device_class=DEVICE_CLASS_HUMIDITY, + entity_registry_enabled_default=False, + state_class=STATE_CLASS_MEASUREMENT, + cls=ToonDisplayDeviceSensor, + ), ToonSensorEntityDescription( key="gas_average", name="Average Gas Usage",