cast instead of rebuilding dict when returning lists of dicts
[plcapi.git] / PLC / Methods / GetAttributes.py
index 87b4b43..8790e13 100644 (file)
@@ -23,5 +23,8 @@ class GetAttributes(Method):
     def call(self, auth, attribute_id_or_name_list = None):
         # Get slice attribute information
         attributes = Attributes(self.api, attribute_id_or_name_list).values()
+       
+       # Turn each attribute into a real dict.
+       attributes = [dict(attribute) for attribute in attributes]
 
         return attributes