diff options
author | Maxim Devaev <[email protected]> | 2022-04-18 09:49:42 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-04-18 09:49:42 +0300 |
commit | ae4509f23425e7c7c2f36c5e4895fe57c6662e46 (patch) | |
tree | d8d32d65c384cca42d907c64b3feae470d033d7f /kvmd | |
parent | af8e859f7158c078ad62ef7f04f85374e5fcc380 (diff) |
refactoring
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/__init__.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index afabd560..1fc801ae 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -486,15 +486,15 @@ def _get_config_scheme() -> Dict: }, "otg": { - "vendor_id": Option(0x1D6B, type=valid_otg_id), # Linux Foundation - "product_id": Option(0x0104, type=valid_otg_id), # Multifunction Composite Gadget - "manufacturer": Option("PiKVM"), - "product": Option("Composite KVM Device"), - "serial": Option("CAFEBABE"), + "vendor_id": Option(0x1D6B, type=valid_otg_id), # Linux Foundation + "product_id": Option(0x0104, type=valid_otg_id), # Multifunction Composite Gadget + "manufacturer": Option("PiKVM"), + "product": Option("Composite KVM Device"), + "serial": Option("CAFEBABE"), "device_version": Option(-1, type=functools.partial(valid_number, min=-1, max=0xFFFF)), - "usb_version": Option(0x0200, type=valid_otg_id), - "max_power": Option(250, type=functools.partial(valid_number, min=50, max=500)), - "remote_wakeup": Option(False, type=valid_bool), + "usb_version": Option(0x0200, type=valid_otg_id), + "max_power": Option(250, type=functools.partial(valid_number, min=50, max=500)), + "remote_wakeup": Option(False, type=valid_bool), "gadget": Option("kvmd", type=valid_otg_gadget), "config": Option("PiKVM device", type=valid_stripped_string_not_empty), |