Fix recorder async (#6228)

pull/5750/merge
Paulus Schoutsen 2017-02-25 15:21:40 -08:00 committed by GitHub
parent 3a7cc9bb45
commit 9afcbaed1d
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class Recorder(threading.Thread):
self._setup_connection()
self._setup_run()
self.db_ready.set()
self.async_db_ready.set()
self.hass.loop.call_soon_threadsafe(self.async_db_ready.set)
break
except SQLAlchemyError as err:
_LOGGER.error("Error during connection setup: %s (retrying "