mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-09 22:37:08 +00:00
Log a debug message on unknown error codes
This commit is contained in:
parent
524696dd87
commit
b4ab4d5269
@ -154,6 +154,10 @@ class Vacuum(SmartModule):
|
|||||||
try:
|
try:
|
||||||
self._error_code = ErrorCode(error)
|
self._error_code = ErrorCode(error)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
_LOGGER.debug(
|
||||||
|
"Unknown error code, please create an issue describing the error: %s",
|
||||||
|
error,
|
||||||
|
)
|
||||||
self._error_code = ErrorCode.Unknown
|
self._error_code = ErrorCode.Unknown
|
||||||
|
|
||||||
def query(self) -> dict:
|
def query(self) -> dict:
|
||||||
|
Loading…
Reference in New Issue
Block a user