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 c59a2c0 commit f6efebeCopy full SHA for f6efebe
roborock/protocols/v1_protocol.py
@@ -155,11 +155,9 @@ 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 "result" not in data_point_response:
+ 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
- result = {}
161
else:
162
- result = data_point_response["result"]
163
_LOGGER.debug("Decoded V1 message result: %s", result)
164
if isinstance(result, str):
165
if result == "unknown_method":
0 commit comments