diff options
author | Devaev Maxim <[email protected]> | 2020-08-31 07:33:33 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-08-31 07:33:33 +0300 |
commit | 9feb3531506706c358e2701a0df1f7cd3b7684c3 (patch) | |
tree | 193695c0c8076a067003d437ec62329665f256bc /kvmd | |
parent | beb28691e3d08d5d5a06f912023504a543578d83 (diff) |
no title
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/__init__.py | 1 | ||||
-rw-r--r-- | kvmd/apps/kvmd/ugpio.py | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 5e23f56c..4e395a35 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -182,7 +182,6 @@ def _patch_dynamic( # pylint: disable=too-many-locals ch_scheme: Dict = { "pin": Option(-1, type=valid_gpio_pin), "mode": Option("", type=valid_gpio_mode), - "title": Option(""), "inverted": Option(False, type=valid_bool), } if mode == "output": diff --git a/kvmd/apps/kvmd/ugpio.py b/kvmd/apps/kvmd/ugpio.py index e5b1e64b..cc4d9685 100644 --- a/kvmd/apps/kvmd/ugpio.py +++ b/kvmd/apps/kvmd/ugpio.py @@ -63,13 +63,12 @@ class GpioChannelIsBusyError(IsBusyError): class _GpioInput: def __init__(self, channel: str, config: Section, reader: gpio.BatchReader) -> None: self.__channel = channel - self.__title: str = config.title self.__pin: int = config.pin # gpio.set_input(config.pin) # Configured in UserGpio/BatchReader self.__inverted: bool = config.inverted self.__reader = reader def get_scheme(self) -> Dict: - return {"title": self.__title} + return {} def get_state(self) -> Dict: return {"state": (self.__reader.get(self.__pin) ^ self.__inverted)} @@ -83,7 +82,6 @@ class _GpioInput: class _GpioOutput: # pylint: disable=too-many-instance-attributes def __init__(self, channel: str, config: Section, notifier: aiotools.AioNotifier) -> None: self.__channel = channel - self.__title: str = config.title self.__pin: int = gpio.set_output(config.pin, (config.initial ^ config.inverted)) self.__inverted: bool = config.inverted self.__switch: bool = config.switch @@ -96,7 +94,6 @@ class _GpioOutput: # pylint: disable=too-many-instance-attributes def get_scheme(self) -> Dict: return { - "title": self.__title, "switch": self.__switch, "pulse": { "delay": self.__pulse_delay, |