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
|
@ -108,8 +108,7 @@ def async_test_home_assistant(loop):
|
|||
@asyncio.coroutine
|
||||
def mock_async_start():
|
||||
"""Start the mocking."""
|
||||
with patch.object(loop, 'add_signal_handler'), \
|
||||
patch('homeassistant.core._async_create_timer'):
|
||||
with patch('homeassistant.core._async_create_timer'):
|
||||
yield from orig_start()
|
||||
|
||||
hass.async_start = mock_async_start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue