mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 03:03:17 +01:00
Adjust esphome light test (#162633)
This commit is contained in:
@@ -605,9 +605,7 @@ async def test_rgb_color_temp_light(
|
||||
)
|
||||
]
|
||||
states = [
|
||||
LightState(
|
||||
key=1, state=True, brightness=100, color_mode=ESPColorMode.BRIGHTNESS
|
||||
)
|
||||
LightState(key=1, state=True, brightness=100, color_mode=ESPColorMode.RGB)
|
||||
]
|
||||
user_service = []
|
||||
await mock_generic_device_entry(
|
||||
@@ -631,7 +629,7 @@ async def test_rgb_color_temp_light(
|
||||
call(
|
||||
key=1,
|
||||
state=True,
|
||||
color_mode=ESPColorMode.BRIGHTNESS,
|
||||
color_mode=ESPColorMode.RGB,
|
||||
device_id=0,
|
||||
)
|
||||
]
|
||||
@@ -649,7 +647,7 @@ async def test_rgb_color_temp_light(
|
||||
call(
|
||||
key=1,
|
||||
state=True,
|
||||
color_mode=ESPColorMode.BRIGHTNESS,
|
||||
color_mode=ESPColorMode.RGB,
|
||||
brightness=pytest.approx(0.4980392156862745),
|
||||
device_id=0,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user