summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/relay/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/msd/relay/__init__.py')
-rw-r--r--kvmd/plugins/msd/relay/__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/kvmd/plugins/msd/relay/__init__.py b/kvmd/plugins/msd/relay/__init__.py
index 2cdc5796..2b45bce3 100644
--- a/kvmd/plugins/msd/relay/__init__.py
+++ b/kvmd/plugins/msd/relay/__init__.py
@@ -218,6 +218,17 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
self.__connected = connected
@contextlib.asynccontextmanager
+ async def read_image(self, name: str) -> AsyncGenerator[int, None]:
+ async with self.__working():
+ if self is not None: # XXX: Vulture and pylint hack
+ raise MsdMultiNotSupported()
+ yield 1
+
+ async def read_image_chunk(self) -> bytes:
+ async with self.__working():
+ raise MsdMultiNotSupported()
+
+ @contextlib.asynccontextmanager
async def write_image(self, name: str, size: int) -> AsyncGenerator[int, None]:
async with self.__working():
async with self.__region: