diff --git a/pygatt/backends/bgapi/device.py b/pygatt/backends/bgapi/device.py index 8bf20453..fdca7e9d 100644 --- a/pygatt/backends/bgapi/device.py +++ b/pygatt/backends/bgapi/device.py @@ -1,3 +1,4 @@ +import functools import logging import time @@ -15,6 +16,7 @@ def connection_required(func): """Raise an exception if the device is not connected before calling the actual function. """ + @functools.wraps(func) def wrapper(self, *args, **kwargs): if self._handle is None: raise exceptions.NotConnectedError()