From 60341ac695ca2867e7a97f631129b4e4caa06424 Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Wed, 9 Jul 2025 15:37:34 +0200 Subject: [PATCH] fix SDM120 --- packages/smarthome/smartmeas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/smarthome/smartmeas.py b/packages/smarthome/smartmeas.py index 0550d6a89d..167c275a79 100644 --- a/packages/smarthome/smartmeas.py +++ b/packages/smarthome/smartmeas.py @@ -533,7 +533,7 @@ def sepwattread(self) -> Tuple[int, int]: try: # neu aus openwb 2.0 with modbus.ModbusTcpClient_(self._device_measureip, self._device_measureportsdm) as tcp_client: - sdm120 = sdm.Sdm120(self._device_measureid, tcp_client) + sdm120 = sdm.Sdm120(self._device_measureid, tcp_client, None) _, newwatt = sdm120.get_power() self.newwatt = int(newwatt) self.newwattk = int(sdm120.get_imported())