mirror of
https://github.com/home-assistant/core.git
synced 2025-12-27 06:28:31 +00:00
Improve performance of verify_event_loop_thread (#118198)
This commit is contained in:
@@ -174,6 +174,7 @@ def get_test_home_assistant() -> Generator[HomeAssistant, None, None]:
|
||||
"""Run event loop."""
|
||||
|
||||
loop._thread_ident = threading.get_ident()
|
||||
hass._loop_thread_id = loop._thread_ident
|
||||
loop.run_forever()
|
||||
loop_stop_event.set()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user