diff options
Diffstat (limited to 'kvmd/plugins/ugpio/ezcoo.py')
-rw-r--r-- | kvmd/plugins/ugpio/ezcoo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/ugpio/ezcoo.py b/kvmd/plugins/ugpio/ezcoo.py index a20aed32..e79ed057 100644 --- a/kvmd/plugins/ugpio/ezcoo.py +++ b/kvmd/plugins/ugpio/ezcoo.py @@ -88,8 +88,8 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute } @classmethod - def get_pin_validator(cls) -> Callable[[Any], str]: - return (lambda arg: str(valid_number(arg, min=0, max=3, name="Ezcoo channel"))) + def get_pin_validator(cls) -> Callable[[Any], Any]: + return functools.partial(valid_number, min=0, max=3, name="Ezcoo channel") def prepare(self) -> None: assert self.__proc is None |