Skip to content

Commit

Permalink
Added return in AsyncModbusSerialClient.connect (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 authored Jan 16, 2023
1 parent d5cdb0b commit 94fa6b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pymodbus/client/serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ async def connect(self): # pylint: disable=invalid-overridden-method
except Exception as exc: # pylint: disable=broad-except
txt = f"Failed to connect: {exc}"
_logger.warning(txt)
return self.connected

def protocol_made_connection(self, protocol):
"""Notify successful connection."""
Expand Down

0 comments on commit 94fa6b1

Please sign in to comment.