diff --git a/pymodbus/client/base.py b/pymodbus/client/base.py index deb4d5c10..0d47a1e50 100644 --- a/pymodbus/client/base.py +++ b/pymodbus/client/base.py @@ -119,7 +119,7 @@ def __init__( # pylint: disable=too-many-arguments self.state = ModbusTransactionState.IDLE self.last_frame_end: float = 0 self.silent_interval: float = 0 - self._reconnect_task = None + self._reconnect_task: asyncio.Task = None # Initialize mixin ModbusClientMixin.__init__(self)