Skip to content

Commit 94fa6b1

Browse files
authored
Added return in AsyncModbusSerialClient.connect (#1271)
1 parent d5cdb0b commit 94fa6b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymodbus/client/serial.py

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ async def connect(self): # pylint: disable=invalid-overridden-method
121121
except Exception as exc: # pylint: disable=broad-except
122122
txt = f"Failed to connect: {exc}"
123123
_logger.warning(txt)
124+
return self.connected
124125

125126
def protocol_made_connection(self, protocol):
126127
"""Notify successful connection."""

0 commit comments

Comments
 (0)