mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Add Toon Humidity Sensor (#59488)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
ee07e9b379
commit
8b676f4252
@ -13,6 +13,7 @@ from homeassistant.config_entries import ConfigEntry
|
|||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
DEVICE_CLASS_ENERGY,
|
DEVICE_CLASS_ENERGY,
|
||||||
DEVICE_CLASS_GAS,
|
DEVICE_CLASS_GAS,
|
||||||
|
DEVICE_CLASS_HUMIDITY,
|
||||||
DEVICE_CLASS_POWER,
|
DEVICE_CLASS_POWER,
|
||||||
DEVICE_CLASS_TEMPERATURE,
|
DEVICE_CLASS_TEMPERATURE,
|
||||||
ENERGY_KILO_WATT_HOUR,
|
ENERGY_KILO_WATT_HOUR,
|
||||||
@ -141,6 +142,17 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
|
|||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
cls=ToonDisplayDeviceSensor,
|
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(
|
ToonSensorEntityDescription(
|
||||||
key="gas_average",
|
key="gas_average",
|
||||||
name="Average Gas Usage",
|
name="Average Gas Usage",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user