mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Add "gentle" mode for Xiaomi Roborock vacuum (#29004)
* Add "gentle" mode for Xiaomi Roborock vacuum * fix tests
This commit is contained in:
parent
8f05388bc5
commit
a08df53dbc
@ -58,7 +58,7 @@ SERVICE_START_REMOTE_CONTROL = "xiaomi_remote_control_start"
|
||||
SERVICE_STOP_REMOTE_CONTROL = "xiaomi_remote_control_stop"
|
||||
SERVICE_CLEAN_ZONE = "xiaomi_clean_zone"
|
||||
|
||||
FAN_SPEEDS = {"Quiet": 38, "Balanced": 60, "Turbo": 77, "Max": 90}
|
||||
FAN_SPEEDS = {"Quiet": 38, "Balanced": 60, "Turbo": 77, "Max": 90, "Gentle": 105}
|
||||
|
||||
ATTR_CLEAN_START = "clean_start"
|
||||
ATTR_CLEAN_STOP = "clean_stop"
|
||||
|
@ -212,6 +212,7 @@ def test_xiaomi_vacuum_services(hass, caplog, mock_mirobo_is_got_error):
|
||||
"Balanced",
|
||||
"Turbo",
|
||||
"Max",
|
||||
"Gentle",
|
||||
]
|
||||
assert state.attributes.get(ATTR_MAIN_BRUSH_LEFT) == 12
|
||||
assert state.attributes.get(ATTR_SIDE_BRUSH_LEFT) == 12
|
||||
@ -354,6 +355,7 @@ def test_xiaomi_specific_services(hass, caplog, mock_mirobo_is_on):
|
||||
"Balanced",
|
||||
"Turbo",
|
||||
"Max",
|
||||
"Gentle",
|
||||
]
|
||||
assert state.attributes.get(ATTR_MAIN_BRUSH_LEFT) == 11
|
||||
assert state.attributes.get(ATTR_SIDE_BRUSH_LEFT) == 11
|
||||
|
Loading…
x
Reference in New Issue
Block a user