Skip to content

Commit 4159e48

Browse files
authored
Fix wiz tests opening sockets (home-assistant#156468)
1 parent 7eb6f7c commit 4159e48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/components/wiz/test_init.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ async def test_wrong_device_now_has_our_ip(hass: HomeAssistant) -> None:
7474
bulb.mac = "dddddddddddd"
7575
_, entry = await async_setup_integration(hass, wizlight=bulb)
7676
assert entry.state is ConfigEntryState.SETUP_RETRY
77-
await hass.async_block_till_done(wait_background_tasks=True)
77+
78+
with _patch_wizlight():
79+
await hass.async_block_till_done(wait_background_tasks=True)
7880

7981

8082
async def test_reload_on_title_change(hass: HomeAssistant) -> None:

0 commit comments

Comments
 (0)