diff options
author | Maxim Devaev <[email protected]> | 2021-09-08 05:45:11 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-09-08 05:45:11 +0300 |
commit | 4e478f968c20286bed80fbb579a90ed2e88e6824 (patch) | |
tree | 6c145fcdd639332d6dd4fb3b1320a55068d4df18 /kvmd | |
parent | 98ad1145a8782d3b82516dd9f81c86d9e80391c5 (diff) |
refactoring
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index c808b6d4..8869746d 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -298,13 +298,13 @@ def _patch_dynamic( # pylint: disable=too-many-locals scheme["kvmd"]["gpio"]["scheme"][channel] = { "driver": Option("__gpio__", type=functools.partial(valid_ugpio_driver, variants=set(drivers))), - "pin": Option(None, type=drivers[driver].get_pin_validator()), - "mode": Option("", type=functools.partial(valid_ugpio_mode, variants=drivers[driver].get_modes())), - "inverted": Option(False, type=valid_bool), + "pin": Option(None, type=drivers[driver].get_pin_validator()), + "mode": Option("", type=functools.partial(valid_ugpio_mode, variants=drivers[driver].get_modes())), + "inverted": Option(False, type=valid_bool), **({ - "busy_delay": Option(0.2, type=valid_float_f01), + "busy_delay": Option(0.2, type=valid_float_f01), "initial": Option(False, type=(lambda arg: (valid_bool(arg) if arg is not None else None))), - "switch": Option(True, type=valid_bool), + "switch": Option(True, type=valid_bool), "pulse": { # type: ignore "delay": Option(0.1, type=valid_float_f0), "min_delay": Option(0.1, type=valid_float_f01), |