Ensure entry is unloaded in azure event hub tests (#91224)

This commit is contained in:
epenet 2023-04-12 04:31:05 +02:00 committed by GitHub
parent 524832ceaf
commit 7f62ed15fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]),
)
await hass.async_block_till_done()
return entry
yield entry
await entry.async_unload(hass)
# fixtures for init tests