Repository navigation
Conversation
in_cleaning can report 4 (unfinished quick map build) and 11 (rooms and zones cleaned in one task). Both decoded as unknown and logged a warning.
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
saruk-vedant
left a comment
There was a problem hiding this comment.
Thanks for digging into this, and for the app cross-check in the description. The mapping itself looks right to me: 4 slots in cleanly after the existing 0-3 sequence, the names follow the existing *_not_complete pattern, and moving the unknown-code probe from 4 to 5 keeps that test honest instead of letting it silently pass on a now-known code. The new parametrized test is a nice touch too, it pins both codes by name rather than just checking they no longer fall back to unknown.
Two questions before I give this a full thumbs up:
-
Code 11 is the one I am least sure about, since the description says it has not been seen on a device and only shows up in some newer app bundles. What pins the name segment_zone_clean_not_complete down? Is there a string or label in the bundle that names it that way, or is the name inferred from the code sitting next to the segment and zone entries? If it is inferred, it might be worth saying so in a comment, so a future reader knows 11 is bundle-derived rather than device-observed like 4.
-
On the test probe moving to 5: was 5 checked against the app bundles as still unknown, or is it just the next free number now that 4 is taken? If it is only the next free number, the test still works as a tripwire, but it would be good to know whether 5 was verified or just picked.
Neither is a blocker for me, the decode for 4 alone fixes the warning reported in #929, and 11 follows the same app-derived pattern the rest of this file already uses. Happy to approve once those two points are answered.
|
Thanks for the review.
|
in_cleaningcan report 4 (unfinished quick map build) and 11 (rooms and zones cleaned in one task). Both decoded asunknownand logged a warning. This adds both values toRoborockInCleaning.Fixes #929
App cross-check
Compared with the Roborock app plugin: 4 is present in every V1 bundle checked, 11 only in some newer ones. The warning for 4 was seen on a Saros while a map was being generated. 11 has not been seen on a device.
Conflicts with open PRs
tests/data/test_code_mappings.py(content conflict, code auto-merges); whichever merges second rebases.