Set cv hass in hass fixture (#77271)

* Set cv hass in hass fixture

* Move test_hass_cv and update docstring

* Update tests/test_test_fixtures.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Jan Bouwhuis
2022-08-25 12:29:31 +02:00
committed by GitHub
parent ad6beac535
commit 7fc294d9b1
2 changed files with 13 additions and 0 deletions

View File

@@ -329,6 +329,8 @@ def hass(loop, load_registries, hass_storage, request):
exceptions = []
hass = loop.run_until_complete(async_test_home_assistant(loop, load_registries))
ha._cv_hass.set(hass)
orig_exception_handler = loop.get_exception_handler()
loop.set_exception_handler(exc_handle)