summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-05 07:13:08 +0300
committerDevaev Maxim <[email protected]>2020-10-05 07:13:08 +0300
commit9bd129f70b1837517cf16f14e104e59d6f4fe12c (patch)
treeb9ce1084ee2f47a42af50b69d5806ce990cf66df /kvmd/apps/__init__.py
parentbfb54767fa41b671bc97e2709f1514c5e84b0a4c (diff)
configurable maxpower
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 20d2d4da..b65a5775 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -382,6 +382,7 @@ def _get_config_scheme() -> Dict:
"manufacturer": Option("Pi-KVM"),
"product": Option("Composite KVM Device"),
"serial": Option("CAFEBABE"),
+ "max_power": Option(250, type=functools.partial(valid_number, min=0, max=500)),
"gadget": Option("kvmd", type=valid_otg_gadget),
"udc": Option("", type=valid_stripped_string),