File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
homeassistant/components/awair Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 55from datetime import timedelta
66import logging
77
8+ API_ABS_HUMID = "abs_humid"
89API_CO2 = "carbon_dioxide"
910API_DEW_POINT = "dew_point"
1011API_DUST = "dust"
Original file line number Diff line number Diff line change 1818from homeassistant .const import (
1919 ATTR_CONNECTIONS ,
2020 ATTR_SW_VERSION ,
21+ CONCENTRATION_GRAMS_PER_CUBIC_METER ,
2122 CONCENTRATION_MICROGRAMS_PER_CUBIC_METER ,
2223 CONCENTRATION_PARTS_PER_BILLION ,
2324 CONCENTRATION_PARTS_PER_MILLION ,
3334from homeassistant .helpers .update_coordinator import CoordinatorEntity
3435
3536from .const import (
37+ API_ABS_HUMID ,
3638 API_CO2 ,
3739 API_DEW_POINT ,
3840 API_DUST ,
@@ -120,6 +122,14 @@ class AwairSensorEntityDescription(SensorEntityDescription):
120122 state_class = SensorStateClass .MEASUREMENT ,
121123 entity_registry_enabled_default = False ,
122124 ),
125+ AwairSensorEntityDescription (
126+ key = API_ABS_HUMID ,
127+ device_class = SensorDeviceClass .ABSOLUTE_HUMIDITY ,
128+ native_unit_of_measurement = CONCENTRATION_GRAMS_PER_CUBIC_METER ,
129+ unique_id_tag = "absolute_humidity" ,
130+ state_class = SensorStateClass .MEASUREMENT ,
131+ entity_registry_enabled_default = False ,
132+ ),
123133)
124134
125135SENSOR_TYPES_DUST : tuple [AwairSensorEntityDescription , ...] = (
You can’t perform that action at this time.
0 commit comments