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

This commit is contained in:
springstan authored and GitHub committed 2020-09-23 20:48:01 +02:00
1 parent 6a7caad8dc
commit 6c8e0e20fb
30 files changed
+71 -46

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ from typing import Any, Callable, Tuple
import pyvera as pv
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT, PERCENTAGE
from homeassistant.const import ATTR_UNIT_OF_MEASUREMENT, LIGHT_LUX, PERCENTAGE
from homeassistant.core import HomeAssistant
from .common import ComponentFactory, new_simple_controller_config
@@ -90,7 +90,7 @@ async def test_light_sensor(
category=pv.CATEGORY_LIGHT_SENSOR,
class_property="light",
assert_states=(("12", "12"), ("13", "13")),
assert_unit_of_measurement="lx",
assert_unit_of_measurement=LIGHT_LUX,
)