Add and use light lux constant in entire code base (#40171)
This commit is contained in:
parent
6a7caad8dc
commit
6c8e0e20fb
30 changed files with 71 additions and 46 deletions
|
@ -12,6 +12,7 @@ from homeassistant.const import (
|
|||
CONF_HOST,
|
||||
CONF_PORT,
|
||||
ELECTRICAL_CURRENT_AMPERE,
|
||||
LIGHT_LUX,
|
||||
PERCENTAGE,
|
||||
TEMP_CELSIUS,
|
||||
VOLT,
|
||||
|
@ -70,7 +71,7 @@ SENSOR_TYPES = {
|
|||
"humidity": ["humidity", PERCENTAGE],
|
||||
"humidity_raw": ["humidity", PERCENTAGE],
|
||||
"pressure": ["pressure", "mb"],
|
||||
"illuminance": ["illuminance", "lux"],
|
||||
"illuminance": ["illuminance", LIGHT_LUX],
|
||||
"wetness_0": ["wetness", PERCENTAGE],
|
||||
"wetness_1": ["wetness", PERCENTAGE],
|
||||
"wetness_2": ["wetness", PERCENTAGE],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue