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/apps | |
parent | 5d1228eb9e5b159d0909453ed85280b9fb794a9e (diff) |
improved pins validation
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/kvmd/ugpio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/kvmd/ugpio.py b/kvmd/apps/kvmd/ugpio.py index 78d7f4f7..fa9309a0 100644 --- a/kvmd/apps/kvmd/ugpio.py +++ b/kvmd/apps/kvmd/ugpio.py @@ -77,7 +77,7 @@ class _GpioInput: ) -> None: self.__channel = channel - self.__pin: str = config.pin + self.__pin: str = str(config.pin) self.__inverted: bool = config.inverted self.__driver = driver @@ -118,7 +118,7 @@ class _GpioOutput: # pylint: disable=too-many-instance-attributes ) -> None: self.__channel = channel - self.__pin: str = config.pin + self.__pin: str = str(config.pin) self.__inverted: bool = config.inverted self.__switch: bool = config.switch |