mirror of
https://github.com/home-assistant/core.git
synced 2026-04-28 12:43:44 +01:00
Add device class for volatile organic compounds (#55050)
This commit is contained in:
@@ -39,6 +39,7 @@ UNITS_OF_MEASUREMENT = {
|
||||
sensor.DEVICE_CLASS_CURRENT: "A", # current (A)
|
||||
sensor.DEVICE_CLASS_ENERGY: "kWh", # energy (Wh/kWh)
|
||||
sensor.DEVICE_CLASS_POWER_FACTOR: PERCENTAGE, # power factor (no unit, min: -1.0, max: 1.0)
|
||||
sensor.DEVICE_CLASS_VOLATILE_ORGANIC_COMPOUNDS: CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, # µg/m³ of vocs
|
||||
sensor.DEVICE_CLASS_VOLTAGE: "V", # voltage (V)
|
||||
sensor.DEVICE_CLASS_GAS: VOLUME_CUBIC_METERS, # gas (m³)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user