diff options
Diffstat (limited to 'kvmd/plugins/atx/disabled.py')
-rw-r--r-- | kvmd/plugins/atx/disabled.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/atx/disabled.py b/kvmd/plugins/atx/disabled.py index d480a337..93cfbb5b 100644 --- a/kvmd/plugins/atx/disabled.py +++ b/kvmd/plugins/atx/disabled.py @@ -37,7 +37,7 @@ class AtxDisabledError(AtxOperationError): # ===== class Plugin(BaseAtx): - def get_state(self) -> Dict: + async def get_state(self) -> Dict: return { "enabled": False, "busy": False, @@ -49,7 +49,7 @@ class Plugin(BaseAtx): async def poll_state(self) -> AsyncGenerator[Dict, None]: while True: - yield self.get_state() + yield (await self.get_state()) await aiotools.wait_infinite() # ===== |