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
|
@ -5,6 +5,7 @@ from homeassistant.const import (
|
|||
DEGREE,
|
||||
ELECTRICAL_CURRENT_AMPERE,
|
||||
ENERGY_KILO_WATT_HOUR,
|
||||
LIGHT_LUX,
|
||||
PERCENTAGE,
|
||||
POWER_WATT,
|
||||
)
|
||||
|
@ -116,7 +117,7 @@ SENSORS = {
|
|||
),
|
||||
("sensor", "luminosity"): BlockAttributeDescription(
|
||||
name="Luminosity",
|
||||
unit="lx",
|
||||
unit=LIGHT_LUX,
|
||||
device_class=sensor.DEVICE_CLASS_ILLUMINANCE,
|
||||
),
|
||||
("sensor", "tilt"): BlockAttributeDescription(name="tilt", unit=DEGREE),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue