Fixing 'tags'' field from old installs (0.43.0+) could have wrong data-type causing crash

pull/2440/head
dgtlmoon 6 months ago committed by GitHub
parent bed16009bb
commit 01f910f840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -843,3 +843,8 @@ class ChangeDetectionStore:
# Something custom here
self.__data["watching"][uuid]['time_between_check_use_default'] = False
# Correctly set datatype for older installs where 'tag' was string and update_12 did not catch it
def update_16(self):
for uuid, watch in self.data['watching'].items():
if isinstance(watch.get('tags'), str):
self.data['watching'][uuid]['tags'] = []

Loading…
Cancel
Save