mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Ensure entry is unloaded in azure event hub tests (#91224)
This commit is contained in:
parent
524832ceaf
commit
7f62ed15fa
@ -59,7 +59,10 @@ async def mock_entry_fixture(hass, filter_schema, mock_create_batch, mock_send_b
|
|||||||
utcnow() + timedelta(seconds=entry.options[CONF_SEND_INTERVAL]),
|
utcnow() + timedelta(seconds=entry.options[CONF_SEND_INTERVAL]),
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
return entry
|
|
||||||
|
yield entry
|
||||||
|
|
||||||
|
await entry.async_unload(hass)
|
||||||
|
|
||||||
|
|
||||||
# fixtures for init tests
|
# fixtures for init tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user