From 94447c357128b38b11c203dcfeef42652179859d Mon Sep 17 00:00:00 2001 From: Hans Erik van Elburg Date: Sun, 17 May 2020 16:58:28 +0200 Subject: [PATCH] GenericProfileObject value: make embedded buffer items also appear as dicts --- dsmr_parser/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsmr_parser/objects.py b/dsmr_parser/objects.py index 3e99d53..1ad1dbc 100644 --- a/dsmr_parser/objects.py +++ b/dsmr_parser/objects.py @@ -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])