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
|
@ -767,7 +767,7 @@ async def async_setup_recorder_instance(
|
|||
instance = hass.data[recorder.DATA_INSTANCE]
|
||||
# The recorder's worker is not started until Home Assistant is running
|
||||
if hass.state == CoreState.running:
|
||||
await async_recorder_block_till_done(hass, instance)
|
||||
await async_recorder_block_till_done(hass)
|
||||
return instance
|
||||
|
||||
return async_setup_recorder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue