Skip to content

Commit

Permalink
Add missing variables
Browse files Browse the repository at this point in the history
  • Loading branch information
madd0 committed Dec 10, 2024
1 parent 912515b commit f8cd89d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/aguaiot/aguaiot.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def login(self):
response.status_code,
response.text,
)
except httpx.TransportError:
except httpx.TransportError as e:
raise ConnectionError(f"Connection error to {url}: {e}")

if response.status_code != 200:
Expand Down Expand Up @@ -203,7 +203,7 @@ async def do_refresh_token(self):
response.status_code,
response.text,
)
except httpx.TransportError:
except httpx.TransportError as e:
raise ConnectionError(f"Connection error to {url}: {e}")

if response.status_code != 201:
Expand Down Expand Up @@ -298,7 +298,7 @@ async def handle_webcall(self, method, url, payload):
response.status_code,
response.text,
)
except httpx.TransportError:
except httpx.TransportError as e:
raise ConnectionError(f"Connection error to {url}: {e}")

if response.status_code == 401:
Expand Down

0 comments on commit f8cd89d

Please sign in to comment.