From 4db324cec43fa0746fae788c4b9f88216bdddcee Mon Sep 17 00:00:00 2001 From: Tobias Sauerwein Date: Sat, 4 Nov 2023 00:37:10 +0100 Subject: [PATCH] Minor clean up --- src/pyatmo/auth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pyatmo/auth.py b/src/pyatmo/auth.py index 21b11984..f8cfc67f 100644 --- a/src/pyatmo/auth.py +++ b/src/pyatmo/auth.py @@ -62,14 +62,13 @@ async def async_get_image( headers=headers, timeout=timeout, ) as resp: - resp_status = resp.status resp_content = await resp.read() if resp.headers.get("content-type") == "image/jpeg": return resp_content raise ApiError( - f"{resp_status} - " + f"{resp.status} - " f"invalid content-type in response" f"when accessing '{url}'", )