diff options
Diffstat (limited to 'kvmd/plugins/hid')
-rw-r--r-- | kvmd/plugins/hid/_mcu/__init__.py | 10 | ||||
-rw-r--r-- | kvmd/plugins/hid/bt/__init__.py | 18 | ||||
-rw-r--r-- | kvmd/plugins/hid/otg/__init__.py | 12 |
3 files changed, 20 insertions, 20 deletions
diff --git a/kvmd/plugins/hid/_mcu/__init__.py b/kvmd/plugins/hid/_mcu/__init__.py index 2eb61072..72c01925 100644 --- a/kvmd/plugins/hid/_mcu/__init__.py +++ b/kvmd/plugins/hid/_mcu/__init__.py @@ -151,11 +151,11 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many- "reset_inverted": Option(False, type=valid_bool), "reset_delay": Option(0.1, type=valid_float_f01), - "read_retries": Option(5, type=valid_int_f1), - "common_retries": Option(5, type=valid_int_f1), - "retries_delay": Option(0.5, type=valid_float_f01), - "errors_threshold": Option(5, type=valid_int_f0), - "noop": Option(False, type=valid_bool), + "read_retries": Option(5, type=valid_int_f1), + "common_retries": Option(5, type=valid_int_f1), + "retries_delay": Option(0.5, type=valid_float_f01), + "errors_threshold": Option(5, type=valid_int_f0), + "noop": Option(False, type=valid_bool), } def sysprep(self) -> None: diff --git a/kvmd/plugins/hid/bt/__init__.py b/kvmd/plugins/hid/bt/__init__.py index e2ef51e4..5606a132 100644 --- a/kvmd/plugins/hid/bt/__init__.py +++ b/kvmd/plugins/hid/bt/__init__.py @@ -110,17 +110,17 @@ class Plugin(BaseHid): # pylint: disable=too-many-instance-attributes "product": Option("HID Device"), "description": Option("Bluetooth Keyboard & Mouse"), - "iface": Option("hci0", type=valid_stripped_string_not_empty), - "alias": Option("PiKVM HID"), + "iface": Option("hci0", type=valid_stripped_string_not_empty), + "alias": Option("PiKVM HID"), - "pairing_required": Option(True, type=valid_bool), - "auth_required": Option(False, type=valid_bool), - "control_public": Option(True, type=valid_bool), - "unpair_on_close": Option(True, type=valid_bool), + "pairing_required": Option(True, type=valid_bool), + "auth_required": Option(False, type=valid_bool), + "control_public": Option(True, type=valid_bool), + "unpair_on_close": Option(True, type=valid_bool), - "max_clients": Option(1, type=valid_int_f1), - "socket_timeout": Option(5.0, type=valid_float_f01), - "select_timeout": Option(1.0, type=valid_float_f01), + "max_clients": Option(1, type=valid_int_f1), + "socket_timeout": Option(5.0, type=valid_float_f01), + "select_timeout": Option(1.0, type=valid_float_f01), } def sysprep(self) -> None: diff --git a/kvmd/plugins/hid/otg/__init__.py b/kvmd/plugins/hid/otg/__init__.py index 5d88fe40..2df354f9 100644 --- a/kvmd/plugins/hid/otg/__init__.py +++ b/kvmd/plugins/hid/otg/__init__.py @@ -94,13 +94,13 @@ class Plugin(BaseHid): # pylint: disable=too-many-instance-attributes "write_retries": Option(150, type=valid_int_f1), }, "mouse": { - "device": Option("", type=valid_abs_path, unpack_as="device_path"), - "select_timeout": Option(0.1, type=valid_float_f01), - "queue_timeout": Option(0.1, type=valid_float_f01), - "write_retries": Option(150, type=valid_int_f1), - "absolute": Option(True, type=valid_bool), + "device": Option("", type=valid_abs_path, unpack_as="device_path"), + "select_timeout": Option(0.1, type=valid_float_f01), + "queue_timeout": Option(0.1, type=valid_float_f01), + "write_retries": Option(150, type=valid_int_f1), + "absolute": Option(True, type=valid_bool), "absolute_win98_fix": Option(False, type=valid_bool), - "horizontal_wheel": Option(True, type=valid_bool), + "horizontal_wheel": Option(True, type=valid_bool), }, "mouse_alt": { "device": Option("", type=valid_abs_path, if_empty="", unpack_as="device_path"), |