Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: ensure that result is not none
  • Loading branch information
Lash-L committed Oct 25, 2025
commit a4b7c92c4554e8ae676b4954a2ef66cbfe9b76f8
2 changes: 1 addition & 1 deletion roborock/protocols/v1_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def decode_rpc_response(message: RoborockMessage) -> ResponseMessage:
exc: RoborockException | None = None
if error := data_point_response.get("error"):
exc = RoborockException(error)
if not (result := data_point_response.get("result")):
if (result := data_point_response.get("result")) is None:
exc = RoborockException(f"Invalid V1 message format: missing 'result' in data point for {message.payload!r}")
else:
Comment thread
Lash-L marked this conversation as resolved.
_LOGGER.debug("Decoded V1 message result: %s", result)
Expand Down