mirror of
https://github.com/Break27/kvmd.git
synced 2026-02-06 18:36:37 +08:00
refactoring
This commit is contained in:
parent
ec6d13dc34
commit
7baf4bc07e
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user