summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-08 11:41:12 +0300
committerDevaev Maxim <[email protected]>2020-09-08 11:41:12 +0300
commit7098eab2585bfb64992e50c0ebb64141cc2bd925 (patch)
treee6c71819e85158df600dbd0510b6b8549ca6ee85 /kvmd/apps/__init__.py
parent5ba0873c32be21fdff822dcac47095d944a29cd3 (diff)
renamed default gpio driver
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 f7fb82de..a4babdbf 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -180,7 +180,7 @@ def _patch_dynamic( # pylint: disable=too-many-locals
if load_gpio:
for (driver, params) in { # type: ignore
- "gpio": {},
+ "__gpio__": {},
**tools.rget(raw_config, "kvmd", "gpio", "drivers"),
}.items():
driver = valid_ugpio_driver(driver)
@@ -194,7 +194,7 @@ def _patch_dynamic( # pylint: disable=too-many-locals
channel = valid_ugpio_channel(channel)
mode = valid_ugpio_mode(params.get("mode", ""))
scheme["kvmd"]["gpio"]["scheme"][channel] = {
- "driver": Option("gpio"),
+ "driver": Option("__gpio__"),
"pin": Option(-1, type=valid_gpio_pin),
"mode": Option("", type=valid_ugpio_mode),
"inverted": Option(False, type=valid_bool),