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:
parent
6844cf871b
commit
4e8c950faf
@ -8,4 +8,4 @@ from .dryer import * # noqa
|
||||
from .refrigerator import * # noqa
|
||||
from .washer import * # noqa
|
||||
|
||||
__version__ = "2.0.0"
|
||||
__version__ = "2.0.1"
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user