improved pins validation

This commit is contained in:
Maxim Devaev
2021-09-08 06:08:11 +03:00
parent 5d1228eb9e
commit ca812117e4
10 changed files with 20 additions and 16 deletions

View File

@@ -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