Skip to content

Commit

Permalink
feat(nexa): always use digest authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
andersevenrud committed Apr 11, 2024
1 parent 8d94536 commit 4f8dbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nexa_bridge_x/nexa.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ async def request(
"""Performs a request"""
url = "http://%s/v1/%s" % (self.host, endpoint or "")

if HTTP_BASIC_AUTH or not self.legacy:
if HTTP_BASIC_AUTH:
auth = httpx.BasicAuth(self.username, self.password)
else:
auth = httpx.DigestAuth(self.username, self.password)
Expand Down

0 comments on commit 4f8dbdd

Please sign in to comment.