Enable B009 (#144192)

This commit is contained in:
Joost Lekkerkerker
2025-05-21 17:37:51 +02:00
committed by GitHub
parent 1dbe1955eb
commit 4cd3527761
21 changed files with 40 additions and 35 deletions

View File

@ -452,7 +452,7 @@ class HomeAssistant:
self.import_executor = InterruptibleThreadPoolExecutor(
max_workers=1, thread_name_prefix="ImportExecutor"
)
self.loop_thread_id = getattr(self.loop, "_thread_id")
self.loop_thread_id = self.loop._thread_id # type: ignore[attr-defined] # noqa: SLF001
def verify_event_loop_thread(self, what: str) -> None:
"""Report and raise if we are not running in the event loop thread."""