Add and use light lux constant in entire code base (#40171)

This commit is contained in:
springstan 2020-09-23 20:48:01 +02:00 committed by GitHub
parent 6a7caad8dc
commit 6c8e0e20fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 71 additions and 46 deletions

View file

@ -9,6 +9,7 @@ from homeassistant.const import (
ENERGY_KILO_WATT_HOUR,
FREQUENCY_HERTZ,
LENGTH_METERS,
LIGHT_LUX,
MASS_KILOGRAMS,
PERCENTAGE,
POWER_WATT,
@ -41,7 +42,7 @@ SENSORS = {
"V_LEVEL": {
"S_SOUND": ["dB", "mdi:volume-high"],
"S_VIBRATION": [FREQUENCY_HERTZ, None],
"S_LIGHT_LEVEL": ["lx", "mdi:white-balance-sunny"],
"S_LIGHT_LEVEL": [LIGHT_LUX, "mdi:white-balance-sunny"],
},
"V_VOLTAGE": [VOLT, "mdi:flash"],
"V_CURRENT": [ELECTRICAL_CURRENT_AMPERE, "mdi:flash-auto"],