From 5019882f9ff37f6379959488b863c5deae687e2a Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 7 Oct 2021 12:39:09 +0200 Subject: [PATCH] Fixed static self reference --- src/sensor/tofsensor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sensor/tofsensor.py b/src/sensor/tofsensor.py index a8fb4df..3daf288 100644 --- a/src/sensor/tofsensor.py +++ b/src/sensor/tofsensor.py @@ -5,14 +5,14 @@ class Directions(Enum): INSIDE = "indoor" OUTSIDE = "outdoor" - def other(self, direction: 'Direction') -> 'Direction': + def other(direction: 'Direction') -> 'Direction': if direction is Directions.INSIDE: return Directions.OUTSIDE else: return Directions.INSIDE - def __iter__(self): - return [self.INSIDE, self.OUTSIDE] + def __iter__(): + return [Directions.INSIDE, Directions.OUTSIDE] class ToFSensor: