Move signal handling out of core to bootstrap (#5815)
* Move signal handling out of core to bootstrap * Fix tests
This commit is contained in:
parent
7eb4bdc37b
commit
2cbed9cd96
7 changed files with 44 additions and 26 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue