Skip to content

Commit

Permalink
Add eyecare on/off to philips_eyecare_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrsscc committed Feb 18, 2020
1 parent b905757 commit db8b610
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions miio/philips_eyecare_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,20 @@ def off(dev: miio.PhilipsEyecare):
click.echo("Power off: %s" % dev.off())


@cli.command()
@pass_dev
def eyecare_on(dev: miio.PhilipsEyecare):
"""Eyecare on."""
click.echo("Eyecare on: %s" % dev.eyecare_on())


@cli.command()
@pass_dev
def eyecare_off(dev: miio.PhilipsEyecare):
"""Eyecare off."""
click.echo("Eyecare off: %s" % dev.eyecare_off())


@cli.command()
@click.argument("level", callback=validate_brightness, required=True)
@pass_dev
Expand Down

0 comments on commit db8b610

Please sign in to comment.