File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
tests/devices/traits/b01/q10 Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,19 @@ class B01_Q10_DP(RoborockModeEnum):
119119
120120
121121class YXFanLevel (RoborockModeEnum ):
122+ """The fan or vacuum level of the robot.
123+
124+ Note: The names used here are the v1 names, though the values
125+ have different aliases in the app bundles.
126+ """
127+
122128 UNKNOWN = "unknown" , - 1
123- CLOSE = "close " , 0
129+ OFF = "off " , 0 # close
124130 QUIET = "quiet" , 1
125- NORMAL = "normal " , 2
126- STRONG = "strong " , 3
131+ BALANCED = "balanced " , 2 # normal
132+ TURBO = "turbo " , 3 # strong
127133 MAX = "max" , 4
128- SUPER = "super " , 8
134+ MAX_PLUS = "max_plus " , 8 # super
129135
130136
131137class YXWaterLevel (RoborockModeEnum ):
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ async def test_status_trait_refresh(
139139 # Verify trait attributes are updated
140140 assert q10_api .status .battery == 100
141141 assert q10_api .status .status == YXDeviceState .CHARGING_STATE
142- assert q10_api .status .fan_level == YXFanLevel .NORMAL
142+ assert q10_api .status .fan_level == YXFanLevel .BALANCED
143143
144144
145145def test_status_trait_update_listener (q10_api : Q10PropertiesApi ) -> None :
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def vacuumm_fixture(q10_api: Q10PropertiesApi) -> VacuumTrait:
3535 (lambda x : x .return_to_dock (), {"203" : {}}),
3636 (lambda x : x .empty_dustbin (), {"203" : 2 }),
3737 (lambda x : x .set_clean_mode (YXCleanType .BOTH_WORK ), {"137" : 1 }),
38- (lambda x : x .set_fan_level (YXFanLevel .NORMAL ), {"123" : 2 }),
38+ (lambda x : x .set_fan_level (YXFanLevel .BALANCED ), {"123" : 2 }),
3939 ],
4040)
4141async def test_vacuum_commands (
You can’t perform that action at this time.
0 commit comments