We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9025b58 commit ebe2760Copy full SHA for ebe2760
1 file changed
elmax/__init__.py
@@ -68,7 +68,7 @@ async def connect(self):
68
# The API doesn't respond with 401 but there will be no JSON
69
except json.decoder.JSONDecodeError:
70
self.authorized = False
71
- _LOGGER.error("Credentials are not valid")
+ raise exceptions.ElmaxConnectionError("Credentials are not valid")
72
73
async def disconnect(self):
74
"""Terminate the connection to the API."""
0 commit comments