Change pending task sheduler to time based cleanup (#4324)
* Change pending task sheduler to time based cleanup * update unittest
This commit is contained in:
1 parent
04dbc992ec
commit
71da21dcc8
4 files changed
+42
-19
No files matched your search
+2
-1
@@ -102,7 +102,8 @@ def async_test_home_assistant(loop):
|
||||
@asyncio.coroutine
|
||||
def mock_async_start():
|
||||
with patch.object(loop, 'add_signal_handler'), \
|
||||
patch('homeassistant.core._async_create_timer'):
|
||||
patch('homeassistant.core._async_create_timer'), \
|
||||
patch.object(hass, '_async_tasks_cleanup', return_value=None):
|
||||
yield from orig_start()
|
||||
|
||||
hass.async_start = mock_async_start
|
||||
|
||||
Reference in new issue
Block a user