diff --git a/pymodbus/transport/transport.py b/pymodbus/transport/transport.py index 51fd99e81..97a0b3a06 100644 --- a/pymodbus/transport/transport.py +++ b/pymodbus/transport/transport.py @@ -159,11 +159,7 @@ def __init__( self.transport: asyncio.BaseTransport = None self.loop: asyncio.AbstractEventLoop = None self.recv_buffer: bytes = b"" - - async def _noop(): - ... - - self.call_create: Callable[[], Coroutine[Any, Any, Any]] = _noop + self.call_create: Callable[[], Coroutine[Any, Any, Any]] = lambda: None if self.is_server: self.active_connections: dict[str, ModbusProtocol] = {} else: