From e8d8b75c07fdddd36d051dcce62e0350314651dd Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 17 Feb 2018 23:20:28 -0800 Subject: [PATCH] Try deflaking recorder tests (#12492) * Try deflaking recorder tests * Remove run_coroutine_threadsafe * Lint --- homeassistant/components/recorder/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py index 6d58b25e976..01d3f76bb77 100644 --- a/homeassistant/components/recorder/__init__.py +++ b/homeassistant/components/recorder/__init__.py @@ -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):