Skip to content

feat: add missing RoborockStateCode values for G20S Ultra and G30 Space - #1096

Open
MeowLuckly wants to merge 1 commit into
Python-roborock:mainfrom
MeowLuckly:feat/add-g20s-g30-state-codes
Open

MeowLuckly wants to merge 1 commit into
Python-roborock:mainfrom
MeowLuckly:feat/add-g20s-g30-state-codes

Conversation

@MeowLuckly

Copy link
Copy Markdown

Summary

Adds the missing RoborockStateCode enum values observed on the Roborock G20S Ultra and G30 Space so these device states decode properly instead of falling back to unknown:

  • dancing_mode = 37 (G20S Ultra, G30 Space)
  • sorting_items = 38 (G30 Space)
  • remote_control_to_pick_up = 39 (G30 Space)
  • retracting_the_arm = 41 (G30 Space)

Testing

  • Added parametrized unit tests in tests/data/test_code_mappings.py verifying that codes 37, 38, 39, and 41 resolve to the expected RoborockStateCode members and display_name values without emitting Missing RoborockStateCode warnings.
  • Verified with uv run pytest and uv run pre-commit run --files roborock/data/v1/v1_code_mappings.py tests/data/test_code_mappings.py (ruff, mypy, codespell).

Fixes #1093

@github-actions github-actions Bot added Data model changes Changes to data models, device info, or feature mappings V1 V1 platform labels Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Data model changes Changes to data models, device info, or feature mappings V1 V1 platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add missing RoborockStateCode values for G20S Ultra and G30 Space

1 participant