Fix lingering timers in image processing tests (#90829)

This commit is contained in:
epenet 2023-04-05 14:09:15 +02:00 committed by GitHub
parent 35b642c6c8
commit 84f58543ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,7 @@ async def test_setup_component(hass: HomeAssistant) -> None:
with assert_setup_component(1, ip.DOMAIN):
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:
@ -66,6 +67,7 @@ async def test_setup_component_with_service(hass: HomeAssistant) -> None:
with assert_setup_component(1, ip.DOMAIN):
assert await async_setup_component(hass, ip.DOMAIN, config)
await hass.async_block_till_done()
assert hass.services.has_service(ip.DOMAIN, "scan")