mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix lingering timers in image processing tests (#90829)
This commit is contained in:
parent
35b642c6c8
commit
84f58543ef
@ -58,6 +58,7 @@ async def test_setup_component(hass: HomeAssistant) -> None:
|
|||||||
|
|
||||||
with assert_setup_component(1, ip.DOMAIN):
|
with assert_setup_component(1, ip.DOMAIN):
|
||||||
assert await async_setup_component(hass, ip.DOMAIN, config)
|
assert await async_setup_component(hass, ip.DOMAIN, config)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
|
|
||||||
async def test_setup_component_with_service(hass: HomeAssistant) -> None:
|
async def test_setup_component_with_service(hass: HomeAssistant) -> None:
|
||||||
@ -66,6 +67,7 @@ async def test_setup_component_with_service(hass: HomeAssistant) -> None:
|
|||||||
|
|
||||||
with assert_setup_component(1, ip.DOMAIN):
|
with assert_setup_component(1, ip.DOMAIN):
|
||||||
assert await async_setup_component(hass, ip.DOMAIN, config)
|
assert await async_setup_component(hass, ip.DOMAIN, config)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
assert hass.services.has_service(ip.DOMAIN, "scan")
|
assert hass.services.has_service(ip.DOMAIN, "scan")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user