diff options
author | Devaev Maxim <[email protected]> | 2020-06-06 06:29:29 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-06-06 06:29:29 +0300 |
commit | 1d7d4100a57b5d654c1434c91e97187fe25698ef (patch) | |
tree | d4709afc3fa03ceac99f1880726ef8639845702d /kvmd/plugins/atx/disabled.py | |
parent | 4f3ebf0fd1100d2076a626d9ae39f414e9adf90b (diff) |
common component interface
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() # ===== |