mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Remove lumen from Illuminance units (#84386)
This commit is contained in:
@@ -13,6 +13,7 @@ from homeassistant.const import (
|
||||
CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
|
||||
CONCENTRATION_PARTS_PER_MILLION,
|
||||
FREQUENCY_GIGAHERTZ,
|
||||
LIGHT_LUX,
|
||||
PERCENTAGE,
|
||||
POWER_VOLT_AMPERE,
|
||||
POWER_VOLT_AMPERE_REACTIVE,
|
||||
@@ -31,7 +32,7 @@ UNITS_OF_MEASUREMENT = {
|
||||
SensorDeviceClass.CO: CONCENTRATION_PARTS_PER_MILLION, # ppm of CO concentration
|
||||
SensorDeviceClass.CO2: CONCENTRATION_PARTS_PER_MILLION, # ppm of CO2 concentration
|
||||
SensorDeviceClass.HUMIDITY: PERCENTAGE, # % of humidity in the air
|
||||
SensorDeviceClass.ILLUMINANCE: "lm", # current light level (lx/lm)
|
||||
SensorDeviceClass.ILLUMINANCE: LIGHT_LUX, # current light level lx
|
||||
SensorDeviceClass.MOISTURE: PERCENTAGE, # % of water in a substance
|
||||
SensorDeviceClass.NITROGEN_DIOXIDE: CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, # µg/m³ of nitrogen dioxide
|
||||
SensorDeviceClass.NITROGEN_MONOXIDE: CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, # µg/m³ of nitrogen monoxide
|
||||
|
||||
Reference in New Issue
Block a user