diff options
author | Maxim Devaev <[email protected]> | 2021-09-08 06:08:11 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-09-08 06:08:11 +0300 |
commit | ca812117e48cbc6e2c71947b912748cfd3ff9691 (patch) | |
tree | d8daa43c9e606ed0c4226a112e943aa683fd627f /kvmd/plugins/ugpio/gpio.py | |
parent | 5d1228eb9e5b159d0909453ed85280b9fb794a9e (diff) |
improved pins validation
Diffstat (limited to 'kvmd/plugins/ugpio/gpio.py')
-rw-r--r-- | kvmd/plugins/ugpio/gpio.py | 4 |
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) |