mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 10:48:01 +02:00
Use BaseEventLoop._thread_id instead of a custom attribute (#124054)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@ -451,9 +451,7 @@ class HomeAssistant:
|
||||
self.import_executor = InterruptibleThreadPoolExecutor(
|
||||
max_workers=1, thread_name_prefix="ImportExecutor"
|
||||
)
|
||||
self.loop_thread_id = getattr(
|
||||
self.loop, "_thread_ident", getattr(self.loop, "_thread_id")
|
||||
)
|
||||
self.loop_thread_id = getattr(self.loop, "_thread_id")
|
||||
|
||||
def verify_event_loop_thread(self, what: str) -> None:
|
||||
"""Report and raise if we are not running in the event loop thread."""
|
||||
|
Reference in New Issue
Block a user