diff --git a/custom_components/nexa_bridge_x/nexa.py b/custom_components/nexa_bridge_x/nexa.py index 3f214c0..00c9305 100644 --- a/custom_components/nexa_bridge_x/nexa.py +++ b/custom_components/nexa_bridge_x/nexa.py @@ -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)