Skip to content

Commit 260476a

Browse files
authored
fix SDM120 (#2536)
1 parent abd0a29 commit 260476a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/smarthome/smartmeas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def sepwattread(self) -> Tuple[int, int]:
533533
try:
534534
# neu aus openwb 2.0
535535
with modbus.ModbusTcpClient_(self._device_measureip, self._device_measureportsdm) as tcp_client:
536-
sdm120 = sdm.Sdm120(self._device_measureid, tcp_client)
536+
sdm120 = sdm.Sdm120(self._device_measureid, tcp_client, None)
537537
_, newwatt = sdm120.get_power()
538538
self.newwatt = int(newwatt)
539539
self.newwattk = int(sdm120.get_imported())

0 commit comments

Comments
 (0)