Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions roborock/data/b01_q10/b01_q10_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,4 @@ class Q10Status(RoborockBase):
clean_task_type: YXDeviceCleanTask | None = field(default=None, metadata={"dps": B01_Q10_DP.CLEAN_TASK_TYPE})
back_type: YXBackType | None = field(default=None, metadata={"dps": B01_Q10_DP.BACK_TYPE})
cleaning_progress: int | None = field(default=None, metadata={"dps": B01_Q10_DP.CLEAN_PROGRESS})
fault: int | None = field(default=None, metadata={"dps": B01_Q10_DP.FAULT})
2 changes: 2 additions & 0 deletions tests/devices/traits/b01/q10/test_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ async def test_status_trait_refresh(
assert q10_api.status.total_clean_count is None
assert q10_api.status.main_brush_life is None
assert q10_api.status.cleaning_progress is None
assert q10_api.status.fault is None

# Mock the response to refresh
# battery (122) = 100
Expand Down Expand Up @@ -151,6 +152,7 @@ async def test_status_trait_refresh(
assert q10_api.status.filter_life == 0
assert q10_api.status.sensor_life == 0
assert q10_api.status.cleaning_progress == 100
assert q10_api.status.fault == 0


def test_status_trait_update_listener(q10_api: Q10PropertiesApi) -> None:
Expand Down
Loading