mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 02:19:31 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user