Apply black reformatting suggestions

remotes/origin/python3
Phil Howard 2020-01-23 12:46:18 +00:00
parent 5854f568fe
commit 07759149d6
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,3 @@
from collections import namedtuple from collections import namedtuple
from mopidy import config from mopidy import config
@ -15,7 +14,9 @@ class ValidList(list):
class PinConfig(config.ConfigValue): class PinConfig(config.ConfigValue):
tuple_pinconfig = namedtuple("PinConfig", ("event", "active", "bouncetime")) 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"]) valid_modes = ValidList(["active_low", "active_high"])

View File

@ -13,7 +13,7 @@ dummy_config = {
# Plugins expect settings to be deserialized # Plugins expect settings to be deserialized
"bcm1": deserialize("play_pause,active_low,30"), "bcm1": deserialize("play_pause,active_low,30"),
"bcm2": deserialize("volume_up,active_high,30"), "bcm2": deserialize("volume_up,active_high,30"),
"bcm3": deserialize("volume_down,active_high,30") "bcm3": deserialize("volume_down,active_high,30"),
} }
} }