Skip to content

feat: Implement device capability metadata for status computed property fields#875

Merged
allenporter merged 6 commits into
Python-roborock:mainfrom
allenporter:implement-device-capability-metadata
Jul 13, 2026
Merged

feat: Implement device capability metadata for status computed property fields#875
allenporter merged 6 commits into
Python-roborock:mainfrom
allenporter:implement-device-capability-metadata

Conversation

@allenporter

@allenporter allenporter commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

This PR implements capability metadata on Status and StatusV2 computed properties (using a stacked @field_metadata decorator) and resolves all merge conflicts with upstream.

Issue: #874 874

@allenporter allenporter marked this pull request as draft July 12, 2026 21:43
@allenporter allenporter marked this pull request as ready for review July 12, 2026 21:55
@allenporter allenporter requested a review from Lash-L July 12, 2026 21:55
Comment thread roborock/data/v1/v1_containers.py Outdated
collision_avoid_status: int | None = None
switch_map_mode: int | None = None
dock_error_status: RoborockDockErrorCode | None = None
dock_error_status: RoborockDockErrorCode | None = field(default=None, metadata={"dock_feature": "is_collectable"})

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this should be gated on has dock, not is collectable. non-collectable docks can error

@allenporter allenporter merged commit 86acd87 into Python-roborock:main Jul 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants