mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +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)
|
}, extra=vol.ALLOW_EXTRA)
|
||||||
|
|
||||||
|
|
||||||
|
@asyncio.coroutine
|
||||||
def wait_connection_ready(hass):
|
def wait_connection_ready(hass):
|
||||||
"""
|
"""
|
||||||
Wait till the connection is ready.
|
Wait till the connection is ready.
|
||||||
|
|
||||||
Returns a coroutine object.
|
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):
|
def run_information(hass, point_in_time: Optional[datetime] = None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user