From 1470ebe6fa3900cb28266edf532d6e68707e1f24 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Fri, 28 Feb 2020 04:44:05 +0300 Subject: hid leds --- kvmd/apps/kvmd/api/hid.py | 2 +- kvmd/apps/kvmd/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'kvmd/apps') 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())), -- cgit v1.2.3