mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Try deflaking recorder tests (#12492)
* Try deflaking recorder tests * Remove run_coroutine_threadsafe * Lint
This commit is contained in:
parent
02c05e2490
commit
e8d8b75c07
@ -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…
x
Reference in New Issue
Block a user