Skip to content

Commit

Permalink
Merge pull request #2777 from LKuemmel/sungr
Browse files Browse the repository at this point in the history
fix sungrow
  • Loading branch information
LKuemmel authored Aug 11, 2023
2 parents 3e340ae + ca6f18f commit fb21b2c
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 fb21b2c

Please sign in to comment.