Don't pass in loop (#23984)
* Don't pass in loop * Revert some changes * Lint + Axis revert * reinstate loop * Fix a test * Set loop * Update camera.py * Lint
This commit is contained in:
parent
9e96397e6a
commit
f995ab9d54
117 changed files with 179 additions and 187 deletions
|
@ -87,6 +87,7 @@ def get_test_home_assistant():
|
|||
else:
|
||||
loop = asyncio.new_event_loop()
|
||||
|
||||
asyncio.set_event_loop(loop)
|
||||
hass = loop.run_until_complete(async_test_home_assistant(loop))
|
||||
|
||||
stop_event = threading.Event()
|
||||
|
@ -102,7 +103,7 @@ def get_test_home_assistant():
|
|||
|
||||
def start_hass(*mocks):
|
||||
"""Start hass."""
|
||||
run_coroutine_threadsafe(hass.async_start(), loop=hass.loop).result()
|
||||
run_coroutine_threadsafe(hass.async_start(), loop).result()
|
||||
|
||||
def stop_hass():
|
||||
"""Stop hass."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue