From 8a9fe6a24a614d7fda2058248f653fa400a5a252 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 21 Aug 2024 08:48:46 -0500 Subject: [PATCH] drop unused arg --- homeassistant/util/executor.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/homeassistant/util/executor.py b/homeassistant/util/executor.py index 9d6c4d0e362def..47b6d08a197cfa 100644 --- a/homeassistant/util/executor.py +++ b/homeassistant/util/executor.py @@ -63,13 +63,10 @@ def join_or_interrupt_threads( class InterruptibleThreadPoolExecutor(ThreadPoolExecutor): """A ThreadPoolExecutor instance that will not deadlock on shutdown.""" - def shutdown( - self, *args: Any, join_threads_or_timeout: bool = True, **kwargs: Any - ) -> None: + def shutdown(self, *args: Any, **kwargs: Any) -> None: """Shutdown with interrupt support added.""" super().shutdown(wait=False, cancel_futures=True) - if join_threads_or_timeout: - self.join_threads_or_timeout() + self.join_threads_or_timeout() def join_threads_or_timeout(self) -> None: """Join threads or timeout."""