Skip to content

Commit 74f78c3

Browse files
authored
remove unused argument (#2754)
1 parent 7380a6c commit 74f78c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/modules/devices/sofar/sofar/inverter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(self) -> None:
2626
self.store = get_inverter_value_store(self.component_config.id)
2727
self.fault_state = FaultState(ComponentInfo.from_component_config(self.component_config))
2828

29-
def update(self, client: ModbusTcpClient_) -> None:
29+
def update(self) -> None:
3030
# 0x05C4 Power_PV_Total UINT16 in kW accuracy 0,1
3131
power = self.client.read_holding_registers(0x05C4, ModbusDataType.UINT_16, unit=self.__modbus_id) * -100
3232
exported = self.client.read_holding_registers(0x0686, ModbusDataType.UINT_32, unit=self.__modbus_id) * 100

0 commit comments

Comments
 (0)