summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-04-18 12:15:43 +0300
committerMaxim Devaev <[email protected]>2022-04-18 12:15:43 +0300
commite83764c501ee64a2ba513d071031b7d2320d7b10 (patch)
tree89a06a8534a6ced6e81286915072dbdcdceff477 /kvmd/apps/__init__.py
parentae4509f23425e7c7c2f36c5e4895fe57c6662e46 (diff)
optional serial number
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 1fc801ae..6d7fa295 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -488,9 +488,9 @@ 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"),
+ "manufacturer": Option("PiKVM", type=valid_stripped_string),
+ "product": Option("Composite KVM Device", type=valid_stripped_string),
+ "serial": Option("CAFEBABE", type=valid_stripped_string, if_none=None),
"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)),