Fixed __exit__ arguments list in GpioSensorDistance

This commit is contained in:
Fabio Manganiello 2019-12-22 19:40:41 +01:00
parent 470f4a8fc9
commit 17d233b55d

View file

@ -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):