Add and use light lux constant in entire code base (#40171)
This commit is contained in:
1 parent
6a7caad8dc
commit
6c8e0e20fb
30 files changed
+71
-46
No files matched your search
@@ -20,6 +20,7 @@ from homeassistant.const import (
|
||||
CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
|
||||
CONCENTRATION_PARTS_PER_BILLION,
|
||||
CONCENTRATION_PARTS_PER_MILLION,
|
||||
LIGHT_LUX,
|
||||
PERCENTAGE,
|
||||
STATE_UNAVAILABLE,
|
||||
TEMP_CELSIUS,
|
||||
@@ -232,7 +233,7 @@ async def test_awair_mint_sensors(hass):
|
||||
"sensor.living_room_illuminance",
|
||||
f"{AWAIR_UUID}_{SENSOR_TYPES[API_LUX][ATTR_UNIQUE_ID]}",
|
||||
"441.7",
|
||||
{ATTR_UNIT_OF_MEASUREMENT: "lx"},
|
||||
{ATTR_UNIT_OF_MEASUREMENT: LIGHT_LUX},
|
||||
)
|
||||
|
||||
# The Mint does not have a CO2 sensor.
|
||||
@@ -290,7 +291,7 @@ async def test_awair_omni_sensors(hass):
|
||||
"sensor.living_room_illuminance",
|
||||
f"{AWAIR_UUID}_{SENSOR_TYPES[API_LUX][ATTR_UNIQUE_ID]}",
|
||||
"804.9",
|
||||
{ATTR_UNIT_OF_MEASUREMENT: "lx"},
|
||||
{ATTR_UNIT_OF_MEASUREMENT: LIGHT_LUX},
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user