diff --git a/platypush/plugins/gpio/sensor/distance/__init__.py b/platypush/plugins/gpio/sensor/distance/__init__.py index 1e4fba0d..ecfaa312 100644 --- a/platypush/plugins/gpio/sensor/distance/__init__.py +++ b/platypush/plugins/gpio/sensor/distance/__init__.py @@ -129,7 +129,7 @@ class GpioSensorDistancePlugin(GpioPlugin, GpioSensorPlugin): def __enter__(self): self._init_board() - def __exit__(self): + def __exit__(self, exc_type, exc_val, exc_tb): self.close() def _get_measurement_thread(self, duration: float):