mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix race in openalpr_cloud tests (#111185)
The test would end before setup was finished and the setup would get cancelled
This commit is contained in:
parent
afa4e76248
commit
68d1fbaadc
@ -106,6 +106,7 @@ async def test_setup_platform_without_api_key(hass: HomeAssistant) -> None:
|
||||
|
||||
with assert_setup_component(0, ip.DOMAIN):
|
||||
await async_setup_component(hass, ip.DOMAIN, config)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
async def test_setup_platform_without_region(hass: HomeAssistant) -> None:
|
||||
@ -121,6 +122,7 @@ async def test_setup_platform_without_region(hass: HomeAssistant) -> None:
|
||||
|
||||
with assert_setup_component(0, ip.DOMAIN):
|
||||
await async_setup_component(hass, ip.DOMAIN, config)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
async def test_openalpr_process_image(
|
||||
|
Loading…
x
Reference in New Issue
Block a user