Move signal handling out of core to bootstrap (#5815)

* Move signal handling out of core to bootstrap

* Fix tests
This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2017-02-08 21:58:45 -08:00
1 parent 7eb4bdc37b
commit 2cbed9cd96
7 files changed
+44 -26

No files matched your search

+2
View File
@@ -26,6 +26,7 @@ from homeassistant.const import EVENT_COMPONENT_LOADED, PLATFORM_FORMAT
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import (
event_decorators, service, config_per_platform, extract_domain_configs)
from homeassistant.helpers.signal import async_register_signal_handling
_LOGGER = logging.getLogger(__name__)
@@ -435,6 +436,7 @@ def async_from_config_dict(config: Dict[str, Any],
yield from hass.async_stop_track_tasks()
async_register_signal_handling(hass)
return hass