refactoring

This commit is contained in:
Maxim Devaev
2021-09-07 08:55:49 +03:00
parent ce5cd50d51
commit cc5b2a42b8
7 changed files with 7 additions and 52 deletions

View File

@@ -66,23 +66,6 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
"mac": Option("", type=valid_mac, if_empty=""),
}
def register_input(self, pin: int, debounce: float) -> None:
_ = pin
_ = debounce
def register_output(self, pin: int, initial: Optional[bool]) -> None:
_ = pin
_ = initial
def prepare(self) -> None:
get_logger(0).info("Probing driver %s on MAC %s and %s:%d ...", self, self.__mac, self.__ip, self.__port)
async def run(self) -> None:
await aiotools.wait_infinite()
async def cleanup(self) -> None:
pass
async def read(self, pin: int) -> bool:
_ = pin
return False