diff --git a/kmk/led.py b/kmk/led.py index 4d0e14c..9921ad1 100644 --- a/kmk/led.py +++ b/kmk/led.py @@ -35,7 +35,7 @@ class led: self.animation_mode = const(config['animation_mode']) self.animation_speed = const(config['animation_speed']) self.breathe_center = const(config['breathe_center']) - if config['user_animation']: + if config.get('user_animation'): self.user_animation = config['user_animation'] def __repr__(self):