We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af371a8 + b3e7bb9 commit 085f013Copy full SHA for 085f013
1 file changed
appdaemon/utils.py
@@ -91,7 +91,8 @@ class PersistentDict(shelve.DbfilenameShelf):
91
Dict-like object that uses a Shelf to persist its contents.
92
"""
93
94
- def __init__(self, filename, safe: bool, *args, **kwargs):
+ def __init__(self, filename: Path, safe: bool, *args, **kwargs):
95
+ filename = Path(filename).resolve().as_posix()
96
# writeback=True allows for mutating objects in place, like with a dict.
97
super().__init__(filename, writeback=True)
98
self.safe = safe
0 commit comments