mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Convert carpet_clean_mode to carpet_boost switch (#1486)
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user