Simplify waiting for recorder in tests (#70647)
This commit is contained in:
parent
a8a7359c6f
commit
28ebab9c5a
38 changed files with 207 additions and 231 deletions
|
@ -12,7 +12,7 @@ from homeassistant.setup import async_setup_component
|
|||
from homeassistant.util import dt as dt_util
|
||||
|
||||
from tests.common import async_fire_time_changed
|
||||
from tests.components.recorder.common import async_wait_recording_done_without_instance
|
||||
from tests.components.recorder.common import async_wait_recording_done
|
||||
|
||||
|
||||
async def test_exclude_attributes(
|
||||
|
@ -32,7 +32,7 @@ async def test_exclude_attributes(
|
|||
await hass.async_block_till_done()
|
||||
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(minutes=5))
|
||||
await hass.async_block_till_done()
|
||||
await async_wait_recording_done_without_instance(hass)
|
||||
await async_wait_recording_done(hass)
|
||||
|
||||
def _fetch_states() -> list[State]:
|
||||
with session_scope(hass=hass) as session:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue