diff options
author | Devaev Maxim <[email protected]> | 2020-09-10 10:17:28 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-10 10:17:28 +0300 |
commit | 7baf4bc07e2d1cf9374fa0c95cb5197cb36aa5e8 (patch) | |
tree | ae6d9c32771490701610e734ce2fda12d9b0553c /kvmd/apps | |
parent | ec6d13dc34071bf6673e532d767c25219ba52327 (diff) |
refactoring
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 1932265a..e95342e8 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -221,7 +221,7 @@ def _patch_dynamic( # pylint: disable=too-many-locals "inverted": Option(False, type=valid_bool), **({ "busy_delay": Option(0.2, type=valid_float_f01), - "initial": Option(False, type=(lambda arg: (None if arg is None else valid_bool(arg)))), + "initial": Option(False, type=(lambda arg: (valid_bool(arg) if arg is not None else None))), "switch": Option(True, type=valid_bool), "pulse": { # type: ignore "delay": Option(0.1, type=valid_float_f0), |