Bugfix wait on start event (#7013)

* Bugfix wait on start event

* Paulus sugestion

* Change handling with stop_track_task

* Add new unittests

* Update test_core.py
This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2017-04-11 09:09:31 -07:00
1 parent cc459e25cc
commit b52cabf2c0
3 files changed
+22 -10

No files matched your search

+1 -2
View File
@@ -122,8 +122,7 @@ def async_test_home_assistant(loop):
# 1. We only mock time during tests
# 2. We want block_till_done that is called inside stop_track_tasks
with patch('homeassistant.core._async_create_timer'), \
patch.object(hass, 'async_stop_track_tasks',
hass.async_block_till_done):
patch.object(hass, 'async_stop_track_tasks'):
yield from orig_start()
hass.async_start = mock_async_start