Skip to content

Commit 0e8480a

Browse files
committed
fix: correct typo in fan level option and improve help message
1 parent d903112 commit 0e8480a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roborock/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,8 +1311,8 @@ 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", "quite", "normal", "strong", "max", "super"]),
1315-
help="Fan suction level",
1314+
type=click.Choice(["close", "quiet", "quite", "normal", "strong", "max", "super"]),
1315+
help='Fan suction level (one of "close", "quiet", "normal", "strong", "max", "super")',
13161316
)
13171317
@click.pass_context
13181318
@async_command
@@ -1323,7 +1323,7 @@ async def q10_set_fan_level(ctx: click.Context, device_id: str, level: str) -> N
13231323
trait = await _q10_vacuum_trait(context, device_id)
13241324
fan_level = YXFanLevel.from_value(level)
13251325
await trait.set_fan_level(fan_level)
1326-
click.echo(f"Fan level set to {level}")
1326+
click.echo(f"Fan level set to {fan_level.value}")
13271327
except RoborockUnsupportedFeature:
13281328
click.echo("Device does not support B01 Q10 protocol. Is it a Q10?")
13291329
except RoborockException as e:

0 commit comments

Comments
 (0)