Convert carpet_clean_mode to carpet_boost switch (#1486)

This commit is contained in:
Teemu R.
2025-01-26 17:16:24 +01:00
committed by GitHub
parent 1df05af208
commit 781d07f6a2
2 changed files with 16 additions and 39 deletions

View File

@@ -21,7 +21,7 @@ clean = parametrize("clean module", component_filter="clean", protocol_filter={"
("vacuum_status", "status", Status),
("vacuum_error", "error", ErrorCode),
("vacuum_fan_speed", "fan_speed_preset", str),
("carpet_clean_mode", "carpet_clean_mode", str),
("carpet_boost", "carpet_boost", bool),
("battery_level", "battery", int),
],
)
@@ -71,11 +71,11 @@ async def test_features(dev: SmartDevice, feature: str, prop_name: str, type: ty
id="vacuum_fan_speed",
),
pytest.param(
"carpet_clean_mode",
"Boost",
"carpet_boost",
True,
"setCarpetClean",
{"carpet_clean_prefer": "boost"},
id="carpet_clean_mode",
id="carpet_boost",
),
pytest.param(
"clean_count",
@@ -218,13 +218,6 @@ async def test_unknown_status(
"Invalid fan speed",
id="vacuum_fan_speed",
),
pytest.param(
"carpet_clean_mode",
"invalid mode",
ValueError,
"Invalid carpet clean mode",
id="carpet_clean_mode",
),
],
)
async def test_invalid_settings(