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
1 changed files with 1 additions and 1 deletions

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]