mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
improved pins validation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user