Skip to content

Commit ab787d9

Browse files
committed
deprecation fix
1 parent 4bc865f commit ab787d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appdaemon/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ async def add_persistent_namespace(self, namespace: str, writeback: str) -> Path
160160
self.state[namespace] = utils.PersistentDict(ns_db_path, safe)
161161
except Exception as exc:
162162
raise ade.PersistentNamespaceFailed(namespace, ns_db_path) from exc
163-
current_thread = threading.current_thread().getName()
163+
current_thread = threading.current_thread().name
164164
self.logger.info(f"Persistent namespace '{namespace}' initialized from {current_thread}")
165165
return ns_db_path
166166

0 commit comments

Comments
 (0)