Skip to content

Commit 2b62d2d

Browse files
authored
Fix flakey ecovacs tests (#155387)
1 parent 350f99b commit 2b62d2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/components/ecovacs/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ async def init_integration(
188188

189189
yield mock_config_entry
190190

191+
# Properly unload the integration to trigger cleanup
192+
await hass.config_entries.async_unload(mock_config_entry.entry_id)
193+
await hass.async_block_till_done(wait_background_tasks=True)
194+
191195

192196
@pytest.fixture
193197
def controller(init_integration: MockConfigEntry) -> EcovacsController:

0 commit comments

Comments
 (0)