From: Benjamin Braatz Date: Wed, 2 Feb 2022 11:31:12 +0000 (+0100) Subject: Do not convert to int. X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=92ef5838eeba4f5f185bef88bb4a115f10987eab;p=graphit%2Fschaltschrank.git Do not convert to int. --- diff --git a/gmodbus/hitachi.py b/gmodbus/hitachi.py index ccef91c..3d94395 100644 --- a/gmodbus/hitachi.py +++ b/gmodbus/hitachi.py @@ -17,7 +17,7 @@ class SJP1Fu(): async def check_parameters(self) -> None: for register in self.registers: - current = int(await self.__protocol.read_register(register)) + current = await self.__protocol.read_register(register) print(f"Register {register}: {current}") parameters = [(12015, 1), (12220, 0), (13022, 2), (13023, 37), (13024, 5),