async def update_settings(cls, request): """Update settings Args: request (Request): aiohttp request Returns: _type_: _description_ JSON POST data: key/value pairs settings """ data = await request.json() resp = BaseHandler.resp_set_config(data) return web.json_response(data=resp, status=200)
async def update_enodo_hub_settings(cls, sid, data, event): resp = BaseHandler.resp_set_config(data) return resp