File tree Expand file tree Collapse file tree 4 files changed +3
-12
lines changed
homeassistant/components/airq Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 66CONF_CLIP_NEGATIVE : Final = "clip_negatives"
77DOMAIN : Final = "airq"
88MANUFACTURER : Final = "CorantGmbH"
9- CONCENTRATION_GRAMS_PER_CUBIC_METER : Final = "g/m³"
109ACTIVITY_BECQUEREL_PER_CUBIC_METER : Final = "Bq/m³"
1110UPDATE_INTERVAL : float = 10.0
Original file line number Diff line number Diff line change 44 "health_index" : {
55 "default" : " mdi:heart-pulse"
66 },
7- "absolute_humidity" : {
8- "default" : " mdi:water"
9- },
107 "oxygen" : {
118 "default" : " mdi:leaf"
129 },
Original file line number Diff line number Diff line change 1414 SensorStateClass ,
1515)
1616from homeassistant .const import (
17+ CONCENTRATION_GRAMS_PER_CUBIC_METER ,
1718 CONCENTRATION_MICROGRAMS_PER_CUBIC_METER ,
1819 CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER ,
1920 CONCENTRATION_PARTS_PER_BILLION ,
2829from homeassistant .helpers .update_coordinator import CoordinatorEntity
2930
3031from . import AirQConfigEntry , AirQCoordinator
31- from .const import (
32- ACTIVITY_BECQUEREL_PER_CUBIC_METER ,
33- CONCENTRATION_GRAMS_PER_CUBIC_METER ,
34- )
32+ from .const import ACTIVITY_BECQUEREL_PER_CUBIC_METER
3533
3634_LOGGER = logging .getLogger (__name__ )
3735
@@ -195,7 +193,7 @@ class AirQEntityDescription(SensorEntityDescription):
195193 ),
196194 AirQEntityDescription (
197195 key = "humidity_abs" ,
198- translation_key = "absolute_humidity" ,
196+ device_class = SensorDeviceClass . ABSOLUTE_HUMIDITY ,
199197 native_unit_of_measurement = CONCENTRATION_GRAMS_PER_CUBIC_METER ,
200198 state_class = SensorStateClass .MEASUREMENT ,
201199 value = lambda data : data .get ("humidity_abs" ),
Original file line number Diff line number Diff line change 9393 "health_index" : {
9494 "name" : " Health index"
9595 },
96- "absolute_humidity" : {
97- "name" : " Absolute humidity"
98- },
9996 "hydrogen" : {
10097 "name" : " Hydrogen"
10198 },
You can’t perform that action at this time.
0 commit comments