Skip to content

Commit

Permalink
fix sungrow
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel committed Aug 11, 2023
1 parent 3e340ae commit ca6f18f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/modules/devices/sungrow/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ def read_legacy(ip_address: str,
dev.update()


def read_legacy_bat(ip_address: str, modbus_id: int):
read_legacy(ip_address, modbus_id, bat.component_descriptor.configuration_factory(id=None))
def read_legacy_bat(ip_address: str, port: int, modbus_id: int):
read_legacy(ip_address, port, modbus_id, bat.component_descriptor.configuration_factory(id=None))


def read_legacy_counter(ip_address: str, modbus_id: int, version: int):
read_legacy(ip_address, modbus_id, counter.component_descriptor.configuration_factory(
def read_legacy_counter(ip_address: str, port: int, modbus_id: int, version: int):
read_legacy(ip_address, port, modbus_id, counter.component_descriptor.configuration_factory(
id=None, configuration=SungrowCounterConfiguration(version=Version(version))))


Expand Down

0 comments on commit ca6f18f

Please sign in to comment.