Skip to content

Commit

Permalink
Migrate miplug cli to the new ChuangmiPlug class (Fixes: rytilahti#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed May 20, 2018
1 parent b5738af commit cb187f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miio/plug_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
validate_token, )

_LOGGER = logging.getLogger(__name__)
pass_dev = click.make_pass_decorator(miio.Plug)
pass_dev = click.make_pass_decorator(miio.ChuangmiPlug)


@click.group(invoke_without_command=True, cls=ExceptionHandlerGroup)
Expand All @@ -35,7 +35,7 @@ def cli(ctx, ip: str, token: str, debug: int):
click.echo("You have to give ip and token!")
sys.exit(-1)

dev = miio.Plug(ip, token, debug)
dev = miio.ChuangmiPlug(ip, token, debug)
_LOGGER.debug("Connecting to %s with token %s", ip, token)

ctx.obj = dev
Expand Down

0 comments on commit cb187f7

Please sign in to comment.