diff options
author | Devaev Maxim <[email protected]> | 2020-02-28 04:44:05 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-02-28 04:44:05 +0300 |
commit | 1470ebe6fa3900cb28266edf532d6e68707e1f24 (patch) | |
tree | 83d50dc80b178fc9658e346c7959ecbc8a251f2f /kvmd/apps | |
parent | a84b6bd31af52d13dcaf93717376852c784a2705 (diff) |
hid leds
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/kvmd/api/hid.py | 2 | ||||
-rw-r--r-- | kvmd/apps/kvmd/server.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/kvmd/api/hid.py b/kvmd/apps/kvmd/api/hid.py index 24c48798..fad22718 100644 --- a/kvmd/apps/kvmd/api/hid.py +++ b/kvmd/apps/kvmd/api/hid.py @@ -47,7 +47,7 @@ class HidApi: @exposed_http("GET", "/hid") async def __state_handler(self, _: aiohttp.web.Request) -> aiohttp.web.Response: - return make_json_response(self.__hid.get_state()) + return make_json_response(await self.__hid.get_state()) @exposed_http("POST", "/hid/reset") async def __reset_handler(self, _: aiohttp.web.Request) -> aiohttp.web.Response: diff --git a/kvmd/apps/kvmd/server.py b/kvmd/apps/kvmd/server.py index 67a0fa95..1b77d345 100644 --- a/kvmd/apps/kvmd/server.py +++ b/kvmd/apps/kvmd/server.py @@ -228,7 +228,7 @@ class KvmdServer(HttpServer): # pylint: disable=too-many-arguments,too-many-ins await asyncio.gather(*[ self.__broadcast_event(_Events.INFO_STATE, (await self.__make_info())), self.__broadcast_event(_Events.WOL_STATE, self.__wol.get_state()), - self.__broadcast_event(_Events.HID_STATE, self.__hid.get_state()), + self.__broadcast_event(_Events.HID_STATE, (await self.__hid.get_state())), self.__broadcast_event(_Events.ATX_STATE, self.__atx.get_state()), self.__broadcast_event(_Events.MSD_STATE, (await self.__msd.get_state())), self.__broadcast_event(_Events.STREAMER_STATE, (await self.__streamer.get_state())), |