Skip to content

Commit 9a015f8

Browse files
Add some comments, remove compat in future
1 parent d8aa667 commit 9a015f8

File tree

1 file changed

+2
-0
lines changed
  • custom_components/solaredge_modbus_multi

1 file changed

+2
-0
lines changed

custom_components/solaredge_modbus_multi/hub.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
from pymodbus.exceptions import ConnectionException, ModbusIOException
1717

1818
try:
19+
# for pymodbus 3.11.1 and newer
1920
from pymodbus.pdu.pdu import ExceptionResponse
2021
except ImportError:
22+
# or backwards compatibility
2123
from pymodbus.pdu import ExceptionResponse
2224

2325
from .const import (

0 commit comments

Comments
 (0)