1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-21 01:20:11 -07:00

Add missing exception

This commit is contained in:
Marcio Granzotto 2021-04-18 15:54:47 -03:00
parent 6844cf871b
commit 4e8c950faf
2 changed files with 8 additions and 1 deletions

View File

@ -8,4 +8,4 @@ from .dryer import * # noqa
from .refrigerator import * # noqa
from .washer import * # noqa
__version__ = "2.0.0"
__version__ = "2.0.1"

View File

@ -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
}