summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-07 14:42:29 +0300
committerDevaev Maxim <[email protected]>2020-09-07 14:42:29 +0300
commit1353ca2e974a66e7797dadba0a89fcbe470c7c7c (patch)
tree20182ccf59b6613ba9f2a1cc8921b7f0edf9759a /kvmd/apps/__init__.py
parentc2831853a04168571caa9e639af30a7a0cf6e75d (diff)
optional gpio initial
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),