Use BaseEventLoop._thread_id instead of a custom attribute (#124054)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Erik Montnemery
2024-08-17 10:59:39 +02:00
committed by GitHub
parent 7deb9bf30f
commit 6c01e4b99c
5 changed files with 7 additions and 12 deletions

View File

@@ -204,8 +204,6 @@ def get_test_home_assistant() -> Generator[HomeAssistant]:
hass.start = start_hass
hass.stop = stop_hass
loop._thread_ident = threading.get_ident()
hass_created_event.set()
loop.run_forever()