We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8aa667 commit 9a015f8Copy full SHA for 9a015f8
custom_components/solaredge_modbus_multi/hub.py
@@ -16,8 +16,10 @@
16
from pymodbus.exceptions import ConnectionException, ModbusIOException
17
18
try:
19
+ # for pymodbus 3.11.1 and newer
20
from pymodbus.pdu.pdu import ExceptionResponse
21
except ImportError:
22
+ # or backwards compatibility
23
from pymodbus.pdu import ExceptionResponse
24
25
from .const import (
0 commit comments