Skip to content

Commit

Permalink
modify test script to print modbus exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
MadOne committed Jan 21, 2025
1 parent 66aa78f commit ad9946a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/weishaupt_modbus/test_modbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async def main(): # noqa: D103
val = rr.registers[0]
except ModbusException as exc:
val = exc
print(val)
if rr.isError():
val = rr
if isinstance(rr, ExceptionResponse):
Expand Down

0 comments on commit ad9946a

Please sign in to comment.