diff options
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/__init__.py | 4 | ||||
-rw-r--r-- | kvmd/plugins/atx/gpio.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/auth/htpasswd.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/auth/http.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/hid/otg/__init__.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/hid/serial.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/msd/relay.py | 2 |
7 files changed, 7 insertions, 9 deletions
diff --git a/kvmd/plugins/__init__.py b/kvmd/plugins/__init__.py index a434b121..cdd683ff 100644 --- a/kvmd/plugins/__init__.py +++ b/kvmd/plugins/__init__.py @@ -27,8 +27,6 @@ from typing import Dict from typing import Type from typing import Any -from ..yamlconf import Option - # ===== class UnknownPluginError(Exception): @@ -46,7 +44,7 @@ class BasePlugin: return name[name.rindex(".") + 1:] @classmethod - def get_plugin_options(cls) -> Dict[str, Option]: + def get_plugin_options(cls) -> Dict: return {} # pragma: nocover diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py index a7089a55..30a129b5 100644 --- a/kvmd/plugins/atx/gpio.py +++ b/kvmd/plugins/atx/gpio.py @@ -78,7 +78,7 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes self.__region = aioregion.AioExclusiveRegion(AtxIsBusyError) @classmethod - def get_plugin_options(cls) -> Dict[str, Option]: + def get_plugin_options(cls) -> Dict: return { "power_led_pin": Option(-1, type=valid_gpio_pin), "hdd_led_pin": Option(-1, type=valid_gpio_pin), diff --git a/kvmd/plugins/auth/htpasswd.py b/kvmd/plugins/auth/htpasswd.py index 46576727..2f4e2df8 100644 --- a/kvmd/plugins/auth/htpasswd.py +++ b/kvmd/plugins/auth/htpasswd.py @@ -37,7 +37,7 @@ class Plugin(BaseAuthService): self.__path = path @classmethod - def get_plugin_options(cls) -> Dict[str, Option]: + def get_plugin_options(cls) -> Dict: return { "file": Option("/etc/kvmd/htpasswd", type=valid_abs_path_exists, unpack_as="path"), } diff --git a/kvmd/plugins/auth/http.py b/kvmd/plugins/auth/http.py index 69670b23..8f264531 100644 --- a/kvmd/plugins/auth/http.py +++ b/kvmd/plugins/auth/http.py @@ -60,7 +60,7 @@ class Plugin(BaseAuthService): self.__http_session: Optional[aiohttp.ClientSession] = None @classmethod - def get_plugin_options(cls) -> Dict[str, Option]: + def get_plugin_options(cls) -> Dict: return { "url": Option("http://localhost/auth"), "verify": Option(True, type=valid_bool), diff --git a/kvmd/plugins/hid/otg/__init__.py b/kvmd/plugins/hid/otg/__init__.py index 566bb0ec..defceba6 100644 --- a/kvmd/plugins/hid/otg/__init__.py +++ b/kvmd/plugins/hid/otg/__init__.py @@ -55,7 +55,7 @@ class Plugin(BaseHid): self.__lock = asyncio.Lock() @classmethod - def get_plugin_options(cls) -> Dict[str, Option]: + def get_plugin_options(cls) -> Dict: return { "keyboard": { "device": Option("", type=valid_abs_path, unpack_as="device_path"), diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py index 5b78e5a9..5edf50a8 100644 --- a/kvmd/plugins/hid/serial.py +++ b/kvmd/plugins/hid/serial.py @@ -167,7 +167,7 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst self.__stop_event = multiprocessing.Event() @classmethod - def get_plugin_options(cls) -> Dict[str, Option]: + def get_plugin_options(cls) -> Dict: return { "reset_pin": Option(-1, type=valid_gpio_pin), "reset_delay": Option(0.1, type=valid_float_f01), diff --git a/kvmd/plugins/msd/relay.py b/kvmd/plugins/msd/relay.py index c6b755fb..d53e0720 100644 --- a/kvmd/plugins/msd/relay.py +++ b/kvmd/plugins/msd/relay.py @@ -198,7 +198,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes log("MSD is offline: %s", err) @classmethod - def get_plugin_options(cls) -> Dict[str, Option]: + def get_plugin_options(cls) -> Dict: return { "target_pin": Option(-1, type=valid_gpio_pin), "reset_pin": Option(-1, type=valid_gpio_pin), |