Serve: Don't redefine built-in open

This commit is contained in:
rlaphoenix 2022-09-10 20:39:50 +01:00
parent b0453b64ac
commit deefb6fbe1

View File

@ -54,7 +54,7 @@ async def ping(_) -> web.Response:
@routes.get("/{device}/open")
async def open(request: web.Request) -> web.Response:
async def open_(request: web.Request) -> web.Response:
secret_key = request.headers["X-Secret-Key"]
device_name = request.match_info["device"]
user = request.app["config"]["users"][secret_key]