From 96f187910b78a5881a7aa794d01475d97ad31d16 Mon Sep 17 00:00:00 2001 From: Marco Zeisler Date: Mon, 17 May 2021 18:24:13 +0200 Subject: [PATCH] fix --- components/i_feed/traffic_light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/i_feed/traffic_light.py b/components/i_feed/traffic_light.py index d7b49d8..16a2c58 100644 --- a/components/i_feed/traffic_light.py +++ b/components/i_feed/traffic_light.py @@ -48,7 +48,7 @@ class TrafficLight: # therefore it sleeps on the end of the loop and first status is immediately sent to msg broker self.current_color = TrafficLight.Color((self._starting_color.value - 1) % num_colors) while self.running: - self.current_color = self.Color((self.current_color.value + 1) % num_colors) + self.current_color = TrafficLight.Color((self.current_color.value + 1) % num_colors) self.last_switch = datetime.now() self.send_status_update() time.sleep(self.switching_time / SCALING)