Skip to content

Commit f1fc92e

Browse files
More debug for modbus reads
1 parent e6ae7a8 commit f1fc92e

File tree

1 file changed

+3
-2
lines changed
  • custom_components/solaredge_modbus_multi

1 file changed

+3
-2
lines changed

custom_components/solaredge_modbus_multi/hub.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,9 @@ async def modbus_read_holding_registers(self, unit, address, rcount):
532532
raise ModbusReadError(result)
533533

534534
_LOGGER.debug(
535-
f"I{self._rr_unit}: Registers received requested : "
536-
f"{len(result.registers)} {self._rr_count}"
535+
f"I{self._rr_unit}: Registers received={len(result.registers)} "
536+
f"requested={self._rr_count} address={self._rr_address} "
537+
f"result={result}"
537538
)
538539

539540
if len(result.registers) != rcount:

0 commit comments

Comments
 (0)