Skip to content

Commit

Permalink
resolve problem of authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
remialban committed Jul 29, 2024
1 parent 1529ddb commit 0e89e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ipx800v3/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ async def call_api(self, path: str = "") -> Response:
auth = httpx.BasicAuth(username=self._username, password=self._password)

async with httpx.AsyncClient() as client:
return await client.get("http://" + self._host + "/" + path, timeout=60.0)
return await client.get("http://" + self._host + "/" + path, timeout=60.0, auth=auth)

0 comments on commit 0e89e88

Please sign in to comment.