diff options
author | Devaev Maxim <[email protected]> | 2020-09-10 04:48:19 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-10 04:48:19 +0300 |
commit | 31fdcd2f3c9284cf72d6b92d51b88273d50e8dc1 (patch) | |
tree | a91720c1d012a3fc71920622b60ea029686a18f4 /kvmd/apps | |
parent | 015baee6d719723672037b0ea738106fbd2c8198 (diff) |
removed processing flag
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/kvmd/api/atx.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/kvmd/api/atx.py b/kvmd/apps/kvmd/api/atx.py index b3a287a0..bc669b2b 100644 --- a/kvmd/apps/kvmd/api/atx.py +++ b/kvmd/apps/kvmd/api/atx.py @@ -49,13 +49,13 @@ class AtxApi: async def __power_handler(self, request: Request) -> Response: action = valid_atx_power_action(request.query.get("action")) wait = valid_bool(request.query.get("wait", "0")) - processing = await ({ + await ({ "on": self.__atx.power_on, "off": self.__atx.power_off, "off_hard": self.__atx.power_off_hard, "reset_hard": self.__atx.power_reset_hard, }[action])(wait) - return make_json_response({"processing": processing}) + return make_json_response() @exposed_http("POST", "/atx/click") async def __click_handler(self, request: Request) -> Response: |