summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-10-24 02:45:07 +0300
committerDevaev Maxim <[email protected]>2019-10-24 02:45:07 +0300
commitc124e63d6d6cdd07b6d0fa4439fed878ed164fbb (patch)
treebf52d2aeba69e499d85617212d6aadec57e96a14 /kvmd/plugins/msd
parent096064cfbc2428a7e276ff5b5c09ecdd0badbb35 (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/msd')
-rw-r--r--kvmd/plugins/msd/otg.py2
-rw-r--r--kvmd/plugins/msd/relay.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/kvmd/plugins/msd/otg.py b/kvmd/plugins/msd/otg.py
index 839fbc1f..bf636bcf 100644
--- a/kvmd/plugins/msd/otg.py
+++ b/kvmd/plugins/msd/otg.py
@@ -50,7 +50,7 @@ class Plugin(BaseMsd):
return {
"storage": Option("/var/lib/kvmd/msd", type=valid_abs_dir, unpack_as="storage_path"),
"remount_cmd": Option([*sudo, "/usr/bin/kvmd-helper-otgmsd-remount", "{mode}"], type=valid_command),
- "unlock_cmd": Option([*sudo, "/usr/bin/kvmd-helper-otgmsd-unlock", "unlock"], type=valid_command),
+ "unlock_cmd": Option([*sudo, "/usr/bin/kvmd-helper-otgmsd-unlock", "unlock"], type=valid_command),
}
def get_state(self) -> Dict:
diff --git a/kvmd/plugins/msd/relay.py b/kvmd/plugins/msd/relay.py
index 926d6526..eff22883 100644
--- a/kvmd/plugins/msd/relay.py
+++ b/kvmd/plugins/msd/relay.py
@@ -203,10 +203,10 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
"target_pin": Option(-1, type=valid_gpio_pin),
"reset_pin": Option(-1, type=valid_gpio_pin),
- "device": Option("", type=valid_abs_path, unpack_as="device_path"),
- "init_delay": Option(1.0, type=valid_float_f01),
- "init_retries": Option(5, type=valid_int_f1),
- "reset_delay": Option(1.0, type=valid_float_f01),
+ "device": Option("", type=valid_abs_path, unpack_as="device_path"),
+ "init_delay": Option(1.0, type=valid_float_f01),
+ "init_retries": Option(5, type=valid_int_f1),
+ "reset_delay": Option(1.0, type=valid_float_f01),
}
def get_state(self) -> Dict: