Skip to content

Commit

Permalink
fix solaredge synergy units
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel committed Nov 21, 2024
1 parent afcc0e8 commit c3298fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/modules/devices/solaredge/solaredge/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def get_synergy_units(component_config: Union[SolaredgeBatSetup,
unit=component_config.configuration.modbus_id)) or 1
log.debug(
f"Synergy Units detected for Modbus ID {component_config.configuration.modbus_id}: {synergy_units}")
return synergy_units
else:
synergy_units = 1
return synergy_units
try:
client = modbus.ModbusTcpClient_(device_config.configuration.ip_address,
device_config.configuration.port,
Expand Down

0 comments on commit c3298fe

Please sign in to comment.