summaryrefslogtreecommitdiff
path: root/kvmd/plugins/ugpio/gpio.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/ugpio/gpio.py')
-rw-r--r--kvmd/plugins/ugpio/gpio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/ugpio/gpio.py b/kvmd/plugins/ugpio/gpio.py
index 315de6f1..2064efc5 100644
--- a/kvmd/plugins/ugpio/gpio.py
+++ b/kvmd/plugins/ugpio/gpio.py
@@ -67,8 +67,8 @@ class Plugin(BaseUserGpioDriver):
}
@classmethod
- def get_pin_validator(cls) -> Callable[[Any], str]:
- return (lambda arg: str(valid_gpio_pin(arg)))
+ def get_pin_validator(cls) -> Callable[[Any], Any]:
+ return valid_gpio_pin
def register_input(self, pin: str, debounce: float) -> None:
self.__input_pins[int(pin)] = aiogp.AioReaderPinParams(False, debounce)