mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Change nomenclature for Roborock fan speeds (#30614)
* Change nomenclature for Roborock fan speeds * Update test_vacuum.py * Update test_vacuum.py
This commit is contained in:
parent
669844e4dd
commit
7052cdded1
@ -60,7 +60,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
extra=vol.ALLOW_EXTRA,
|
||||
)
|
||||
|
||||
FAN_SPEEDS = {"Quiet": 38, "Balanced": 60, "Turbo": 77, "Max": 90, "Gentle": 105}
|
||||
FAN_SPEEDS = {"Silent": 38, "Standard": 60, "Medium": 77, "Turbo": 90, "Gentle": 105}
|
||||
|
||||
ATTR_CLEAN_START = "clean_start"
|
||||
ATTR_CLEAN_STOP = "clean_stop"
|
||||
|
@ -204,12 +204,12 @@ async def test_xiaomi_vacuum_services(hass, caplog, mock_mirobo_is_got_error):
|
||||
assert state.attributes.get(ATTR_BATTERY_ICON) == "mdi:battery-80"
|
||||
assert state.attributes.get(ATTR_CLEANING_TIME) == 155
|
||||
assert state.attributes.get(ATTR_CLEANED_AREA) == 123
|
||||
assert state.attributes.get(ATTR_FAN_SPEED) == "Quiet"
|
||||
assert state.attributes.get(ATTR_FAN_SPEED) == "Silent"
|
||||
assert state.attributes.get(ATTR_FAN_SPEED_LIST) == [
|
||||
"Quiet",
|
||||
"Balanced",
|
||||
"Silent",
|
||||
"Standard",
|
||||
"Medium",
|
||||
"Turbo",
|
||||
"Max",
|
||||
"Gentle",
|
||||
]
|
||||
assert state.attributes.get(ATTR_MAIN_BRUSH_LEFT) == 12
|
||||
@ -273,7 +273,7 @@ async def test_xiaomi_vacuum_services(hass, caplog, mock_mirobo_is_got_error):
|
||||
await hass.services.async_call(
|
||||
DOMAIN,
|
||||
SERVICE_SET_FAN_SPEED,
|
||||
{"entity_id": entity_id, "fan_speed": "turbo"},
|
||||
{"entity_id": entity_id, "fan_speed": "Medium"},
|
||||
blocking=True,
|
||||
)
|
||||
mock_mirobo_is_got_error.assert_has_calls(
|
||||
@ -348,10 +348,10 @@ async def test_xiaomi_specific_services(hass, caplog, mock_mirobo_is_on):
|
||||
assert state.attributes.get(ATTR_CLEANED_AREA) == 133
|
||||
assert state.attributes.get(ATTR_FAN_SPEED) == 99
|
||||
assert state.attributes.get(ATTR_FAN_SPEED_LIST) == [
|
||||
"Quiet",
|
||||
"Balanced",
|
||||
"Silent",
|
||||
"Standard",
|
||||
"Medium",
|
||||
"Turbo",
|
||||
"Max",
|
||||
"Gentle",
|
||||
]
|
||||
assert state.attributes.get(ATTR_MAIN_BRUSH_LEFT) == 11
|
||||
|
Loading…
x
Reference in New Issue
Block a user