button: fix linter errors
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
0eae069666
commit
7219cc45a5
|
@ -27,7 +27,7 @@ class ButtonManager:
|
||||||
for section in prefix_sections:
|
for section in prefix_sections:
|
||||||
cfg = config[section]
|
cfg = config[section]
|
||||||
# Reserve the "type" option for future use
|
# Reserve the "type" option for future use
|
||||||
btn_type = cfg.get('type', "gpio")
|
btn_type = cfg.get('type', "gpio") # noqa: F841
|
||||||
try:
|
try:
|
||||||
btn = GpioButton(cfg)
|
btn = GpioButton(cfg)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue