From 5a249f72476db6818431b92c85987b65997bb803 Mon Sep 17 00:00:00 2001 From: mgfcf Date: Fri, 3 Dec 2021 21:11:57 +0100 Subject: [PATCH] Fixed syntax error --- src/sensor/people_counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sensor/people_counter.py b/src/sensor/people_counter.py index 1bdf54c..d8daf59 100644 --- a/src/sensor/people_counter.py +++ b/src/sensor/people_counter.py @@ -158,7 +158,7 @@ class PeopleCounter (): cb(countChange, self.directionState) def isDirectionTriggered(self, direction: Directions) -> bool: - return len(self.directionState[direction]]) > 0 and self.directionState[direction][-1][END_TIME] is None + return len(self.directionState[direction]) > 0 and self.directionState[direction][-1][END_TIME] is None def updateState(self, direction: Directions, triggered: bool) -> bool: previouslyTriggered = False