Add ConfigMergeMixin
ADD
plextraktsync/config/ConfigMergeMixin.py
+class ConfigMergeMixin:
+ # https://stackoverflow.com/a/20666342/2314626
+ def merge(self, source, destination):
+ for key, value in source.items():
+ if isinstance(value, dict):
+ # get node or create one
+ node = destination.setdefault(key, {})
+ self.merge(value, node)
+ else:
+ destination[key] = value
+
+ return destination

Add ConfigMergeMixin