Fix flaky homewizard test (#65490)

This commit is contained in:
Erik Montnemery 2022-02-03 09:23:32 +01:00 committed by Franck Nijhof
parent f44ca5f9d5
commit 339fc0a2af
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -663,10 +663,10 @@ async def test_sensors_unreachable(hass, mock_config_entry_data, mock_config_ent
entry = mock_config_entry
entry.data = mock_config_entry_data
entry.add_to_hass(hass)
utcnow = dt_util.utcnow()
await hass.config_entries.async_setup(entry.entry_id)
await hass.async_block_till_done()
utcnow = dt_util.utcnow() # Time after the integration is setup
assert (
hass.states.get(
@ -717,7 +717,7 @@ async def test_api_disabled(hass, mock_config_entry_data, mock_config_entry):
await hass.config_entries.async_setup(entry.entry_id)
await hass.async_block_till_done()
utcnow = dt_util.utcnow()
utcnow = dt_util.utcnow() # Time after the integration is setup
assert (
hass.states.get(