Skip to content

Add unit tests for ViomiVacuum (viomi.vacuum.v8)#2061

Open
Acrobot wants to merge 2 commits intorytilahti:masterfrom
Acrobot:viomi-vacuum-tests
Open

Add unit tests for ViomiVacuum (viomi.vacuum.v8)#2061
Acrobot wants to merge 2 commits intorytilahti:masterfrom
Acrobot:viomi-vacuum-tests

Conversation

@Acrobot
Copy link
Copy Markdown

@Acrobot Acrobot commented Mar 26, 2026

ViomiVacuum had no test coverage. This adds tests for the v8 model, covering:

  • Status property parsing (including the inverted is_charge/is_work booleans)
  • Vacuum state to VacuumState mapping and error code handling
  • Device commands: fan speed, water grade, cleaning modes, DND, volume, etc.
  • Map and room operations (including the schedule-based room extraction hack)
  • Position tracking and coordinate math
  • Consumable status and remaining time calculations

63 tests total, all passing. No new failures in the full suite.

The ViomiVacuum integration had zero test coverage. This adds 63 tests
covering status parsing, vacuum state mapping, error codes, all device
commands, DND, consumables, map/room operations, and position tracking.
@Acrobot
Copy link
Copy Markdown
Author

Acrobot commented Mar 27, 2026

These changes were generated using Claude Code under my supervision. I reviewed and approved all code before submitting. I'm not very familiar with this codebase, so apologies in advance for any mistakes.

@Acrobot Acrobot marked this pull request as ready for review March 27, 2026 00:51
@Acrobot Acrobot mentioned this pull request Mar 27, 2026
22 tasks
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.

1 participant