diff --git a/kasa/smartprotocol.py b/kasa/smartprotocol.py index cbfd16b0..472d9320 100644 --- a/kasa/smartprotocol.py +++ b/kasa/smartprotocol.py @@ -206,7 +206,8 @@ class SmartProtocol(BaseProtocol): self, response_result: dict[str, Any], method, retry_count ): if ( - isinstance(response_result, SmartErrorCode) + response_result is None + or isinstance(response_result, SmartErrorCode) or "start_index" not in response_result or (list_sum := response_result.get("sum")) is None ):