From 8712ad2de83d2ed3e80bc53b76aab617ab2219c6 Mon Sep 17 00:00:00 2001 From: "Lael N. Santos" Date: Fri, 2 Aug 2019 13:48:13 -0300 Subject: [PATCH] changed load()'s call to point_class to be keyworded --- sunspec/core/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunspec/core/device.py b/sunspec/core/device.py index 05d5cfc..2d21c1f 100644 --- a/sunspec/core/device.py +++ b/sunspec/core/device.py @@ -706,7 +706,7 @@ def load(self, block_class=Block, point_class=Point): for point_type in block_type.points_list: if point_type.type != suns.SUNS_TYPE_PAD: point_addr = int(block_addr) + int(point_type.offset) - point = point_class(block, point_type, str(point_addr)) + point = point_class(block=block, point_type=point_type, addr=str(point_addr)) if point_addr + point.point_type.len - last_read_addr > MAX_READ_COUNT: last_read_addr = point_addr self.read_blocks.append(last_read_addr)