From b4ab4d5269d23775e61a8532bca746bf75a6e191 Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Fri, 3 Jan 2025 20:06:11 +0100 Subject: [PATCH] Log a debug message on unknown error codes --- kasa/smart/modules/vacuum.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kasa/smart/modules/vacuum.py b/kasa/smart/modules/vacuum.py index 89cef71f..3c2e8b50 100644 --- a/kasa/smart/modules/vacuum.py +++ b/kasa/smart/modules/vacuum.py @@ -154,6 +154,10 @@ class Vacuum(SmartModule): try: self._error_code = ErrorCode(error) except ValueError: + _LOGGER.debug( + "Unknown error code, please create an issue describing the error: %s", + error, + ) self._error_code = ErrorCode.Unknown def query(self) -> dict: