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 2017-02-09 06:58:45 +01:00 committed by Paulus Schoutsen
parent 7eb4bdc37b
commit 2cbed9cd96
7 changed files with 44 additions and 26 deletions

View file

@ -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