Skip to content

Commit 494a752

Browse files
committed
fix: remove normalization method for fan level option and update CLI choices
1 parent ce7383a commit 494a752

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

roborock/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ async def q10_set_clean_mode(ctx: click.Context, device_id: str, mode: str) -> N
13111311
@click.option(
13121312
"--level",
13131313
required=True,
1314-
type=click.Choice(["close", "quiet", "quite", "normal", "strong", "max", "super"]),
1314+
type=click.Choice(["close", "quiet", "normal", "strong", "max", "super"]),
13151315
help='Fan suction level (one of "close", "quiet", "normal", "strong", "max", "super")',
13161316
)
13171317
@click.pass_context

roborock/data/b01_q10/b01_q10_code_mappings.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ class YXFanLevel(RoborockModeEnum):
127127
MAX = "max", 4
128128
SUPER = "super", 8
129129

130-
@classmethod
131-
def from_value(cls, value: str) -> "YXFanLevel":
132-
normalized = "quiet" if value.lower() == "quite" else value
133-
return super().from_value(normalized)
134-
135130

136131
class YXWaterLevel(RoborockModeEnum):
137132
UNKNOWN = "unknown", -1

0 commit comments

Comments
 (0)