Try deflaking recorder tests (#12492)

* Try deflaking recorder tests

* Remove run_coroutine_threadsafe

* Lint
This commit is contained in:
Paulus Schoutsen 2018-02-17 23:20:28 -08:00 committed by GitHub
parent 02c05e2490
commit e8d8b75c07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):