proper set_input/set_output

This commit is contained in:
Devaev Maxim
2020-08-31 05:01:09 +03:00
parent 9baf507453
commit 584651afba
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ class BatchReader:
def __init__(self, pins: List[int], interval: float, notifier: aiotools.AioNotifier) -> None:
self.__pins = pins
self.__flags: Tuple[Optional[bool], ...] = (None,) * len(pins)
self.__state = dict.fromkeys(pins, False)
self.__state = {pin: read(pin) for pin in pins}
self.__interval = interval
self.__notifier = notifier