Avoid running final writes in executor in test (#84679)

This commit is contained in:
Joakim Plate 2022-12-28 23:40:11 +01:00 committed by GitHub
parent 345081ba15
commit 5c43f0861f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 7 deletions

View file

@ -220,6 +220,7 @@ async def test_device_management(hass: HomeAssistant):
):
async_fire_time_changed(hass, dt.utcnow() + COORDINATOR_UPDATE_INTERVAL)
await hass.async_block_till_done()
await hass.async_block_till_done()
devices = dr.async_entries_for_config_entry(dev_reg, mock_entry.entry_id)
assert len(devices) == 1