Skip to content

v1.2.1 - Fix Q10 Data Type Error

Choose a tag to compare

@JoshuaSeidel JoshuaSeidel released this 04 Mar 21:49

v1.2.1 - Fix Q10 Data Type Error

Bug Fixes

Fixed critical error preventing Q10 devices from loading entities:

AttributeError: 'StatusTrait' object has no attribute 'mode'

Root Cause

Q7 and Q10 devices use completely different API structures:

  • Q7: Query-based API returning B01Props with fields like mode, water, main_brush_time_left
  • Q10: Subscription-based API returning Q10Status with fields like clean_mode, water_level, battery

The v1.2.0 release incorrectly tried to use Q7's field structure for Q10 devices.

Changes

Coordinator:

  • RoborockB01Q10UpdateCoordinator now properly returns Q10Status instead of B01Props
  • Added proper initialization with device info and update interval

Sensors:

  • Created Q10-specific sensor descriptions matching Q10Status structure
  • Available sensors: battery, status, clean_time, clean_area, cleaning_progress

Select Controls:

  • Temporarily disabled for Q10 (API methods need documentation)
  • Will be re-enabled once Q10PropertiesApi set methods are confirmed

Q10 Entities Now Available

  • ✅ Vacuum entity with full controls
  • ✅ Battery sensor
  • ✅ Status sensor
  • ✅ Clean time sensor
  • ✅ Clean area sensor
  • ✅ Cleaning progress sensor
  • ⏸️ Select entities (coming soon)

Full Changelog: v1.2.0...v1.2.1