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

+1 -2
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