GenericProfileObject value: make embedded buffer items also appear as dicts

This commit is contained in:
Hans Erik van Elburg 2020-05-17 16:58:28 +02:00
parent c2dea29c83
commit 94447c3571

View File

@ -145,8 +145,8 @@ class ProfileGenericObject(DSMRObject):
list = [['buffer_length', self.buffer_length]]
list.append(['buffer_type', self.buffer_type])
buffer_repr = [
(['datetime', buffer_item.datetime],
['value', buffer_item.value])
dict([['datetime', buffer_item.datetime],
['value', buffer_item.value]])
for buffer_item in self.buffer
]
list.append(['buffer', buffer_repr])