We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c91999 commit a4b7c92Copy full SHA for a4b7c92
roborock/protocols/v1_protocol.py
@@ -155,7 +155,7 @@ def decode_rpc_response(message: RoborockMessage) -> ResponseMessage:
155
exc: RoborockException | None = None
156
if error := data_point_response.get("error"):
157
exc = RoborockException(error)
158
- if not (result := data_point_response.get("result")):
+ if (result := data_point_response.get("result")) is None:
159
exc = RoborockException(f"Invalid V1 message format: missing 'result' in data point for {message.payload!r}")
160
else:
161
_LOGGER.debug("Decoded V1 message result: %s", result)
0 commit comments