Skip to content

Commit c83fecf

Browse files
committed
feat: Add volume trait
1 parent e6e6564 commit c83fecf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

roborock/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ async def clean_summary(ctx, device_id: str):
420420
@async_command
421421
async def volume(ctx, device_id: str):
422422
"""Get device volume."""
423-
424423
context: RoborockContext = ctx.obj
425424

426425
device_manager = await context.get_device_manager()

roborock/protocols/v1_protocol.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ class ResponseMessage:
111111
api_error: RoborockException | None = None
112112
"""The API error message of the response if any."""
113113

114+
api_error: RoborockException | None = None
115+
"""The API error message of the response if any."""
116+
114117

115118
def decode_rpc_response(message: RoborockMessage) -> ResponseMessage:
116119
"""Decode a V1 RPC_RESPONSE message.
@@ -151,7 +154,6 @@ def decode_rpc_response(message: RoborockMessage) -> ResponseMessage:
151154
if not (result := data_point_response.get("result")):
152155
exc = RoborockException(f"Invalid V1 message format: missing 'result' in data point for {message.payload!r}")
153156
else:
154-
_LOGGER.debug("Decoded V1 message result: %s", result)
155157
_LOGGER.debug("Decoded V1 message result: %s", result)
156158
if isinstance(result, str):
157159
if result == "unknown_method":

0 commit comments

Comments
 (0)