Skip to content

Commit

Permalink
Merge pull request #1039 from LKuemmel/qcells
Browse files Browse the repository at this point in the history
fix qcells
  • Loading branch information
LKuemmel authored Jul 20, 2023
2 parents 3d1ee21 + 53f8f95 commit a9a56ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/modules/devices/qcells/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def create_inverter_component(component_config: QCellsInverterSetup):
device_config.configuration.modbus_id)

def update_components(components: Iterable[Union[QCellsBat, QCellsCounter, QCellsInverter]]):
with client as c:
with client:
for component in components:
with SingleComponentUpdateContext(component.component_info):
component.update(c)
component.update()

try:
client = ModbusTcpClient_(device_config.configuration.ip_address, 502)
Expand Down

0 comments on commit a9a56ff

Please sign in to comment.