diff --git a/examples/demo.py b/examples/demo.py index b911592..6093875 100644 --- a/examples/demo.py +++ b/examples/demo.py @@ -14,7 +14,7 @@ def demo_led_colors(movehub): # LED colors demo log.info("LED colors demo") movehub.color_distance_sensor.subscribe(lambda x, y: None) - for color in COLORS.keys()[1:] + [COLOR_BLACK]: + for color in list(COLORS.keys())[1:] + [COLOR_BLACK]: log.info("Setting LED color to: %s", COLORS[color]) movehub.led.set_color(color) sleep(1)