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
1 changed files with 1 additions and 1 deletions

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