Add flatten_dict decorator
MODIFY
plextraktsync/decorators/flatten.py
plextraktsync/decorators/flatten.py
@@ -7,3 +7,11 @@ def inner(*args):
return list(method(*args))
return inner
+
+
+def flatten_dict(method):
+ @wraps(method)
+ def inner(*args):
+ return dict(method(*args))
+
+ return inner

Add flatten_dict decorator