diff options
Diffstat (limited to 'kvmd/plugins/ugpio/pwm.py')
-rw-r--r-- | kvmd/plugins/ugpio/pwm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/ugpio/pwm.py b/kvmd/plugins/ugpio/pwm.py index 2bd8807e..642a3f68 100644 --- a/kvmd/plugins/ugpio/pwm.py +++ b/kvmd/plugins/ugpio/pwm.py @@ -81,8 +81,8 @@ class Plugin(BaseUserGpioDriver): return set([UserGpioModes.OUTPUT]) @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_output(self, pin: str, initial: Optional[bool]) -> None: self.__channels[int(pin)] = initial |