Skip to content

Commit 6d7f75b

Browse files
Update hub.py
1 parent b61fb96 commit 6d7f75b

File tree

1 file changed

+1
-4
lines changed
  • custom_components/solaredge_modbus_multi

1 file changed

+1
-4
lines changed

custom_components/solaredge_modbus_multi/hub.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,6 @@ def __init__(self, device_id: int, battery_id: int, hub: SolarEdgeModbusMultiHub
690690
self.start_address = 57600
691691
elif self.battery_id == 2:
692692
self.start_address = 57856
693-
#elif self.battery_id == 0:
694-
# mirror of 57600?
695-
# self.start_address = 62720
696693
else:
697694
raise ValueError("Invalid battery_id {self.battery_id}")
698695

@@ -796,7 +793,7 @@ def read_modbus_data(self) -> None:
796793
('B_Event_Log_Vendor6', decoder.decode_16bit_uint()),
797794
('B_Event_Log_Vendor7', decoder.decode_16bit_uint()),
798795
('B_Event_Log_Vendor8', decoder.decode_16bit_uint()),
799-
])
796+
])
800797

801798
for name, value in iteritems(self.decoded_model):
802799
_LOGGER.debug(f"Inverter {self.inverter_unit_id} battery {self.battery_id}: {name} {hex(value) if isinstance(value, int) else value}")

0 commit comments

Comments
 (0)