mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix implicit-return in recorder (#122924)
This commit is contained in:
parent
f7f0f49015
commit
97de1c2b66
@ -71,7 +71,8 @@ class RecorderPool(SingletonThreadPool, NullPool):
|
|||||||
|
|
||||||
def _do_return_conn(self, record: ConnectionPoolEntry) -> None:
|
def _do_return_conn(self, record: ConnectionPoolEntry) -> None:
|
||||||
if threading.get_ident() in self.recorder_and_worker_thread_ids:
|
if threading.get_ident() in self.recorder_and_worker_thread_ids:
|
||||||
return super()._do_return_conn(record)
|
super()._do_return_conn(record)
|
||||||
|
return
|
||||||
record.close()
|
record.close()
|
||||||
|
|
||||||
def shutdown(self) -> None:
|
def shutdown(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user