Tweak recorder/restore_state (#6412)

* Tweak recorder/restore_state

* Lint
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2017-03-05 10:52:08 +01:00
1 parent 2650c73a89
commit e8a22cb4a8
4 files changed
+51 -31

No files matched your search

+1 -4
View File
@@ -29,8 +29,7 @@ from homeassistant.components import sun, mqtt, recorder
from homeassistant.components.http.auth import auth_middleware
from homeassistant.components.http.const import (
KEY_USE_X_FORWARDED_FOR, KEY_BANS_ENABLED, KEY_TRUSTED_NETWORKS)
from homeassistant.util.async import (
run_callback_threadsafe, run_coroutine_threadsafe)
from homeassistant.util.async import run_callback_threadsafe
_LOGGER = logging.getLogger(__name__)
INST_COUNT = 0
@@ -477,8 +476,6 @@ def init_recorder_component(hass, add_config=None):
assert setup_component(hass, recorder.DOMAIN,
{recorder.DOMAIN: config})
assert recorder.DOMAIN in hass.config.components
run_coroutine_threadsafe(
recorder.wait_connection_ready(hass), hass.loop).result()
_LOGGER.info("In-memory recorder successfully started")