Fix flaky homewizard test (#65490)

This commit is contained in:
Erik Montnemery 2022-02-03 09:23:32 +01:00 committed by GitHub
parent 913d6f6ea1
commit 23ee8adf59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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