summaryrefslogtreecommitdiff
path: root/kvmd/validators
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-30 07:55:32 +0300
committerDevaev Maxim <[email protected]>2019-09-30 07:55:32 +0300
commitbcae85c8b98059b091c9aeea70eaf414b2ad068b (patch)
tree397fa878419a530818952c7111ad5b03fb974e81 /kvmd/validators
parent5b8ac7ba70ee0ade4139fa888a23e4d4d3eb22cd (diff)
hdmi: decreased stream restart
Diffstat (limited to 'kvmd/validators')
-rw-r--r--kvmd/validators/basic.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/validators/basic.py b/kvmd/validators/basic.py
index 87056428..0328490d 100644
--- a/kvmd/validators/basic.py
+++ b/kvmd/validators/basic.py
@@ -74,6 +74,10 @@ def valid_int_f1(arg: Any) -> int:
return int(valid_number(arg, min=1))
+def valid_float_f0(arg: Any) -> float:
+ return float(valid_number(arg, min=0, type=float))
+
+
def valid_float_f01(arg: Any) -> float:
return float(valid_number(arg, min=0.1, type=float))