Migrate setup to use eager tasks (#111619)

This commit is contained in:
J. Nick Koston 2024-02-27 12:43:32 -10:00 committed by GitHub
parent 9cf874d4a0
commit 6abb8ae273
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 14 additions and 4 deletions

View file

@ -31,6 +31,7 @@ async def test_setup_retry(hass: HomeAssistant) -> None:
bulb.getMac = AsyncMock(return_value=FAKE_MAC)
with _patch_discovery(), _patch_wizlight(device=bulb):
await hass.async_block_till_done()
async_fire_time_changed(hass, utcnow() + datetime.timedelta(minutes=15))
await hass.async_block_till_done()
assert entry.state is config_entries.ConfigEntryState.LOADED