mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 10:38:22 +00:00
parent
14dca8e783
commit
6724d86565
@ -22,7 +22,6 @@ from homeassistant.const import (
|
||||
DEVICE_CLASS_ILLUMINANCE,
|
||||
DEVICE_CLASS_PRESSURE,
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
LIGHT_LUX,
|
||||
PERCENTAGE,
|
||||
PRESSURE_HPA,
|
||||
TEMP_CELSIUS,
|
||||
@ -38,6 +37,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||
|
||||
DEFAULT_NAME = "Xiaomi Miio Sensor"
|
||||
DATA_KEY = "sensor.xiaomi_miio"
|
||||
UNIT_LUMEN = "lm"
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
{
|
||||
@ -302,7 +302,7 @@ class XiaomiGatewayIlluminanceSensor(Entity):
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""Return the unit of measurement of this entity."""
|
||||
return LIGHT_LUX
|
||||
return UNIT_LUMEN
|
||||
|
||||
@property
|
||||
def device_class(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user