diff options
author | Devaev Maxim <[email protected]> | 2019-10-24 02:45:07 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-10-24 02:45:07 +0300 |
commit | c124e63d6d6cdd07b6d0fa4439fed878ed164fbb (patch) | |
tree | bf52d2aeba69e499d85617212d6aadec57e96a14 /kvmd/plugins | |
parent | 096064cfbc2428a7e276ff5b5c09ecdd0badbb35 (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins')
-rw-r--r-- | kvmd/plugins/atx/gpio.py | 8 | ||||
-rw-r--r-- | kvmd/plugins/hid/otg/__init__.py | 4 | ||||
-rw-r--r-- | kvmd/plugins/msd/otg.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/msd/relay.py | 8 |
4 files changed, 11 insertions, 11 deletions
diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py index 30a129b5..287d2b19 100644 --- a/kvmd/plugins/atx/gpio.py +++ b/kvmd/plugins/atx/gpio.py @@ -80,13 +80,13 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes @classmethod def get_plugin_options(cls) -> Dict: return { - "power_led_pin": Option(-1, type=valid_gpio_pin), - "hdd_led_pin": Option(-1, type=valid_gpio_pin), + "power_led_pin": Option(-1, type=valid_gpio_pin), + "hdd_led_pin": Option(-1, type=valid_gpio_pin), "power_led_inverted": Option(True, type=valid_bool), "hdd_led_inverted": Option(True, type=valid_bool), - "power_switch_pin": Option(-1, type=valid_gpio_pin), - "reset_switch_pin": Option(-1, type=valid_gpio_pin), + "power_switch_pin": Option(-1, type=valid_gpio_pin), + "reset_switch_pin": Option(-1, type=valid_gpio_pin), "click_delay": Option(0.1, type=valid_float_f01), "long_click_delay": Option(5.5, type=valid_float_f01), diff --git a/kvmd/plugins/hid/otg/__init__.py b/kvmd/plugins/hid/otg/__init__.py index 1d05199b..c5dc1a7a 100644 --- a/kvmd/plugins/hid/otg/__init__.py +++ b/kvmd/plugins/hid/otg/__init__.py @@ -74,8 +74,8 @@ class Plugin(BaseHid): "write_retries_delay": Option(0.1, type=valid_float_f01), }, - "noop": Option(False, type=valid_bool), - "state_poll": Option(0.1, type=valid_float_f01), + "noop": Option(False, type=valid_bool), + "state_poll": Option(0.1, type=valid_float_f01), } def start(self) -> None: 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: |