From 80a8304986fbe266ef5a50a535db6ba3a0bc08eb Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 8 Jul 2019 16:33:21 +0200 Subject: [PATCH] refactor --- src/RegisterDatapoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RegisterDatapoint.py b/src/RegisterDatapoint.py index 4c1fdbf..221be46 100644 --- a/src/RegisterDatapoint.py +++ b/src/RegisterDatapoint.py @@ -95,7 +95,7 @@ class InputRegisterDatapoint(AbstractModbusDatapoint): self.type = 'input register' def __str__(self): - return "[{0!s}, {1}".format(super().__str__(), self.publishTopic) + return "[{0!s}, UpdateOnly: {1}, Read: {2}".format(super().__str__(), self.updateOnly, self.publishTopic) def process(self, client, pubQueue): successFull = True @@ -133,7 +133,7 @@ class DiscreteInputDatapoint(AbstractModbusDatapoint): self.type = 'discrete input' def __str__(self): - return "[{0!s}, {1}".format(super().__str__(), self.publishTopic) + return "[{0!s}, UpdateOnly: {1}, Read: {2}".format(super().__str__(), self.updateOnly, self.publishTopic) def process(self, client, pubQueue): successFull = True