mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Enable B009 (#144192)
This commit is contained in:
committed by
GitHub
parent
1dbe1955eb
commit
4cd3527761
@ -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."""
|
||||
|
Reference in New Issue
Block a user