diff options
author | Devaev Maxim <[email protected]> | 2020-09-10 13:17:04 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-10 13:17:09 +0300 |
commit | ff36ff203e2228125c41a5cdd3df3d50b1a17cac (patch) | |
tree | 3b58ad0297bc92747744c6d9f0beab50798c2647 /kvmd | |
parent | 905bcf555f00d191654982cca80e294363efecc1 (diff) |
edge detection not available for pin r/w
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/ugpio/gpio.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kvmd/plugins/ugpio/gpio.py b/kvmd/plugins/ugpio/gpio.py index d9056d59..2af24907 100644 --- a/kvmd/plugins/ugpio/gpio.py +++ b/kvmd/plugins/ugpio/gpio.py @@ -29,7 +29,6 @@ from ... import gpio from ...yamlconf import Option -from ...validators.basic import valid_bool from ...validators.basic import valid_float_f01 from . import BaseUserGpioDriver @@ -42,13 +41,11 @@ class Plugin(BaseUserGpioDriver): instance_name: str, notifier: aiotools.AioNotifier, - edge_detection: bool, state_poll: float, ) -> None: super().__init__(instance_name, notifier) - self.__edge_detection = edge_detection self.__state_poll = state_poll self.__input_pins: Set[int] = set() @@ -59,8 +56,7 @@ class Plugin(BaseUserGpioDriver): @classmethod def get_plugin_options(cls) -> Dict: return { - "edge_detection": Option(False, type=valid_bool), - "state_poll": Option(0.1, type=valid_float_f01), + "state_poll": Option(0.1, type=valid_float_f01), } def register_input(self, pin: int) -> None: @@ -79,7 +75,7 @@ class Plugin(BaseUserGpioDriver): for (pin, initial) in self.__output_pins.items() ], ]), - edge_detection=self.__edge_detection, + edge_detection=False, interval=self.__state_poll, notifier=self._notifier, ) |