diff --git a/wideq/__init__.py b/wideq/__init__.py index 8155958..b51f2b7 100644 --- a/wideq/__init__.py +++ b/wideq/__init__.py @@ -8,4 +8,4 @@ from .dryer import * # noqa from .refrigerator import * # noqa from .washer import * # noqa -__version__ = "2.0.0" +__version__ = "2.0.1" diff --git a/wideq/core.py b/wideq/core.py index aff9ba5..7d35d8c 100644 --- a/wideq/core.py +++ b/wideq/core.py @@ -176,6 +176,12 @@ class FailedRequestError(APIError): device. """ +class InvalidCredentialError(APIError): + """The server rejected connection.""" + + def __init__(self): + pass + class InvalidRequestError(APIError): """The server rejected a request as invalid.""" @@ -206,6 +212,7 @@ API_ERRORS = { "0102": NotLoggedInError, "0106": NotConnectedError, "0100": FailedRequestError, + "0110": InvalidCredentialError, 9000: InvalidRequestError, # Surprisingly, an integer (not a string). 9003: NotLoggedInError, # Session Creation FailureError }