summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvmd/plugins/ugpio/hidrelay.py6
-rw-r--r--testenv/Dockerfile3
2 files changed, 6 insertions, 3 deletions
diff --git a/kvmd/plugins/ugpio/hidrelay.py b/kvmd/plugins/ugpio/hidrelay.py
index 0606c85f..4e9513c3 100644
--- a/kvmd/plugins/ugpio/hidrelay.py
+++ b/kvmd/plugins/ugpio/hidrelay.py
@@ -64,7 +64,7 @@ class Plugin(BaseUserGpioDriver):
self.__device_path = device_path
self.__state_poll = state_poll
- self.__device: (hid.device | None) = None
+ self.__device: (hid.device | None) = None # type: ignore
self.__stop = False
self.__initials: dict[int, (bool | None)] = {}
@@ -158,10 +158,10 @@ class Plugin(BaseUserGpioDriver):
raise RuntimeError(f"Retval of send_feature_report() < 0: {result}")
@contextlib.contextmanager
- def __ensure_device(self, context: str) -> hid.device:
+ def __ensure_device(self, context: str) -> hid.device: # type: ignore
assert not self.__stop
if self.__device is None:
- device = hid.device()
+ device = hid.device() # type: ignore
device.open_path(self.__device_path.encode("utf-8"))
device.set_nonblocking(True)
self.__device = device
diff --git a/testenv/Dockerfile b/testenv/Dockerfile
index 12a93a8e..b5741ac3 100644
--- a/testenv/Dockerfile
+++ b/testenv/Dockerfile
@@ -11,6 +11,9 @@ RUN pacman --noconfirm --ask=4 -Syy \
&& pacman --needed --noconfirm --ask=4 -S \
glibc \
pacman \
+ openssl \
+ openssl-1.0 \
+ openssl-1.1 \
&& pacman-db-upgrade \
&& pacman --noconfirm --ask=4 -Syu \
&& pacman --needed --noconfirm --ask=4 -S \