1
0
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:
J. Nick Koston
2024-05-26 17:39:15 -10:00
committed by GitHub
parent 87fc27eeae
commit 25f199c39c
2 changed files with 5 additions and 3 deletions

View File

@@ -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()