Try deflaking recorder tests (#12492)
* Try deflaking recorder tests * Remove run_coroutine_threadsafe * Lint
This commit is contained in:
parent
02c05e2490
commit
e8d8b75c07
1 changed files with 2 additions and 1 deletions
|
@ -87,13 +87,14 @@ CONFIG_SCHEMA = vol.Schema({
|
|||
}, extra=vol.ALLOW_EXTRA)
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def wait_connection_ready(hass):
|
||||
"""
|
||||
Wait till the connection is ready.
|
||||
|
||||
Returns a coroutine object.
|
||||
"""
|
||||
return hass.data[DATA_INSTANCE].async_db_ready
|
||||
return (yield from hass.data[DATA_INSTANCE].async_db_ready)
|
||||
|
||||
|
||||
def run_information(hass, point_in_time: Optional[datetime] = None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue