Skip to content

Commit

Permalink
Try deflaking recorder tests (home-assistant#12492)
Browse files Browse the repository at this point in the history
* Try deflaking recorder tests

* Remove run_coroutine_threadsafe

* Lint
  • Loading branch information
balloob authored and dmulcahey committed Feb 19, 2018
1 parent a16a5f1 commit 66f5430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/recorder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,14 @@
}, 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):
Expand Down

0 comments on commit 66f5430

Please sign in to comment.