Fixed missing parameter

This commit is contained in:
Maximilian Giller 2021-10-07 12:53:02 +02:00
parent 538419718d
commit 361c972b8b

View file

@ -116,7 +116,7 @@ class PeopleCounter ():
cb(countChange) cb(countChange)
def updateState(self, direction: Directions, triggered: bool) -> bool: def updateState(self, direction: Directions, triggered: bool) -> bool:
currentlyTriggered = self.directionState[direction] == None currentlyTriggered = self.directionState[direction][END_TIME] == None
if triggered and not currentlyTriggered: if triggered and not currentlyTriggered:
# Set as new beginning for this direction # Set as new beginning for this direction