summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index ce7cfaef..e431dc6e 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -200,8 +200,8 @@ def _patch_dynamic( # pylint: disable=too-many-locals
if mode == "output":
ch_scheme.update({
"busy_delay": Option(0.2, type=valid_float_f01),
- "initial": Option(False, type=valid_bool),
- "switch": Option(True, type=valid_bool),
+ "initial": Option(False, type=(lambda arg: (None if arg is None else valid_bool(arg)))),
+ "switch": Option(True, type=valid_bool),
"pulse": {
"delay": Option(0.1, type=valid_float_f0),
"min_delay": Option(0.1, type=valid_float_f01),