Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion appdaemon/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,8 @@ async def set_namespace_state(self, namespace: str, state: dict[str, Any], persi
self.state[namespace].update(state)
else:
# first in case it had been created before, it should be deleted
await self.remove_namespace(namespace)
if isinstance(self.state.get(namespace), utils.PersistentDict):
await self.remove_persistent_namespace(namespace, self.state[namespace])
self.state[namespace] = state

def update_namespace_state(self, namespace: str | list[str], state: dict):
Expand Down
Loading