mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-20 02:34:05 +02:00
Use area_entities to extract entity_ids from area
This commit is contained in:
parent
17061f360f
commit
b64c44fc8d
2 changed files with 18 additions and 2 deletions
|
|
@ -871,7 +871,7 @@ async def test_separate_turn_on_commands(hass, separate_turn_on_commands):
|
|||
|
||||
|
||||
async def test_area(hass):
|
||||
_, (light, *_) = await setup_lights_and_switch(hass)
|
||||
switch, (light, *_) = await setup_lights_and_switch(hass)
|
||||
device_in_area = device_registry.DeviceEntry(area_id="test-area")
|
||||
|
||||
mock_device_registry(hass, {device_in_area.id: device_in_area})
|
||||
|
|
@ -897,3 +897,8 @@ async def test_area(hass):
|
|||
blocking=True,
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
_LOGGER.debug(
|
||||
"switch.turn_on_off_listener.last_service_data: %s",
|
||||
switch.turn_on_off_listener.last_service_data,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue