Clean up some async stuff (#3915)

* Clean up some async stuff

* Adjust comments

* Pass hass instance to eventbus
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2016-10-17 19:38:41 -07:00
1 parent daea93d9f9
commit 4c8d1d9d2f
7 files changed
+139 -111

No files matched your search

+2 -2
View File
@@ -76,8 +76,8 @@ def get_test_home_assistant(num_threads=None):
"""Fake stop."""
yield None
@patch.object(ha, 'async_create_timer')
@patch.object(ha, 'async_monitor_worker_pool')
@patch.object(ha, '_async_create_timer')
@patch.object(ha, '_async_monitor_worker_pool')
@patch.object(hass.loop, 'add_signal_handler')
@patch.object(hass.loop, 'run_forever')
@patch.object(hass.loop, 'close')