Add device class CO2 to various integrations (#47676)
* Add device class CO2 to Fibaro * Add device class CO2 to Awair * Add device class CO2 to Tasmota * Add device class CO2 to Netatmo * Add device class CO2 to Ambient Station * Update Tasmota tests * Remove icon
This commit is contained in:
parent
5bc0e9a50f
commit
461e766a93
6 changed files with 20 additions and 9 deletions
|
@ -8,6 +8,7 @@ from homeassistant.const import (
|
|||
CONCENTRATION_PARTS_PER_MILLION,
|
||||
DEGREE,
|
||||
DEVICE_CLASS_BATTERY,
|
||||
DEVICE_CLASS_CO2,
|
||||
DEVICE_CLASS_HUMIDITY,
|
||||
DEVICE_CLASS_PRESSURE,
|
||||
DEVICE_CLASS_SIGNAL_STRENGTH,
|
||||
|
@ -52,7 +53,7 @@ SUPPORTED_PUBLIC_SENSOR_TYPES = [
|
|||
SENSOR_TYPES = {
|
||||
"temperature": ["Temperature", TEMP_CELSIUS, None, DEVICE_CLASS_TEMPERATURE, True],
|
||||
"temp_trend": ["Temperature trend", None, "mdi:trending-up", None, False],
|
||||
"co2": ["CO2", CONCENTRATION_PARTS_PER_MILLION, "mdi:molecule-co2", None, True],
|
||||
"co2": ["CO2", CONCENTRATION_PARTS_PER_MILLION, None, DEVICE_CLASS_CO2, True],
|
||||
"pressure": ["Pressure", PRESSURE_MBAR, None, DEVICE_CLASS_PRESSURE, True],
|
||||
"pressure_trend": ["Pressure trend", None, "mdi:trending-up", None, False],
|
||||
"noise": ["Noise", "dB", "mdi:volume-high", None, True],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue