diff --git a/mopidy_raspberry_gpio/pinconfig.py b/mopidy_raspberry_gpio/pinconfig.py index f2d0a7f..f6c7270 100644 --- a/mopidy_raspberry_gpio/pinconfig.py +++ b/mopidy_raspberry_gpio/pinconfig.py @@ -1,4 +1,3 @@ - from collections import namedtuple from mopidy import config @@ -15,7 +14,9 @@ class ValidList(list): class PinConfig(config.ConfigValue): tuple_pinconfig = namedtuple("PinConfig", ("event", "active", "bouncetime")) - valid_events = ValidList(["play_pause", "prev", "next", "volume_up", "volume_down"]) + valid_events = ValidList( + ["play_pause", "prev", "next", "volume_up", "volume_down"] + ) valid_modes = ValidList(["active_low", "active_high"]) diff --git a/tests/test_frontend.py b/tests/test_frontend.py index 56607e9..427d4e6 100644 --- a/tests/test_frontend.py +++ b/tests/test_frontend.py @@ -13,7 +13,7 @@ dummy_config = { # Plugins expect settings to be deserialized "bcm1": deserialize("play_pause,active_low,30"), "bcm2": deserialize("volume_up,active_high,30"), - "bcm3": deserialize("volume_down,active_high,30") + "bcm3": deserialize("volume_down,active_high,30"), } }