diff options
author | Devaev Maxim <[email protected]> | 2019-09-25 03:15:20 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-09-25 03:15:20 +0300 |
commit | 5c4e8f7962fe89ee0dcdea9ba859f7045fa2d6d8 (patch) | |
tree | 785b2454f56480464d18c71c2221b262bb92eabb /kvmd/plugins/msd/disabled.py | |
parent | 5d437c58e342bcb9847e419e46c751b3ed70e747 (diff) |
extended msd api for future otg
Diffstat (limited to 'kvmd/plugins/msd/disabled.py')
-rw-r--r-- | kvmd/plugins/msd/disabled.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/kvmd/plugins/msd/disabled.py b/kvmd/plugins/msd/disabled.py index 56ed10db..5eb3083b 100644 --- a/kvmd/plugins/msd/disabled.py +++ b/kvmd/plugins/msd/disabled.py @@ -42,6 +42,7 @@ class Plugin(BaseMsd): def get_state(self) -> Dict: return { "enabled": False, + "multi": False, "online": False, "busy": False, "uploading": False, @@ -56,19 +57,24 @@ class Plugin(BaseMsd): yield self.get_state() await asyncio.sleep(60) + async def reset(self) -> None: + raise MsdDisabledError() + + # ===== + async def connect(self) -> Dict: raise MsdDisabledError() async def disconnect(self) -> Dict: raise MsdDisabledError() - async def reset(self) -> None: + async def select(self, name: str) -> Dict: raise MsdDisabledError() - async def __aenter__(self) -> BaseMsd: + async def remove(self, name: str) -> Dict: raise MsdDisabledError() - def get_chunk_size(self) -> int: + async def __aenter__(self) -> BaseMsd: raise MsdDisabledError() async def write_image_info(self, name: str, complete: bool) -> None: |