mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix flaky homewizard test (#65490)
This commit is contained in:
parent
f44ca5f9d5
commit
339fc0a2af
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user