Skip to content

Commit

Permalink
Update help info for reset_consumable
Browse files Browse the repository at this point in the history
  • Loading branch information
mrin committed Nov 8, 2017
1 parent 3d1b833 commit 120de89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion miio/vacuum_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ def consumables(vac: miio.Vacuum):
@click.argument('name', type=str, required=True)
@pass_dev
def reset_consumable(vac: miio.Vacuum, name):
"""Reset consumable."""
"""Reset consumable state
Allowed values: main_brush, side_brush, filter, sensor_dirty
"""
from miio.vacuum import Consumable
if name == 'main_brush':
consumable = Consumable.MainBrush
Expand All @@ -159,6 +162,7 @@ def reset_consumable(vac: miio.Vacuum, name):
elif name == 'sensor_dirty':
consumable = Consumable.SensorDirty
else:
click.echo("Allowed values: main_brush, side_brush, filter, sensor_dirty")
return

click.echo("Resetting consumable '%s': %s" % (
Expand Down

0 comments on commit 120de89

Please sign in to comment.