Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitydev committed Oct 29, 2017
1 parent cafa8ab commit 5b6bf6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion miio/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ def set_timezone(self, new_zone):

def configure_wifi(self, ssid, password, uid=0):
"""Configure the wifi settings."""
return self.send("miIO.config_router", { "ssid": ssid, "passwd": password, "uid": uid })[0]
params = {"ssid": ssid, "passwd": password, "uid": uid}
return self.send("miIO.config_router", params)[0]

def raw_command(self, cmd, params):
"""Send a raw command to the robot."""
Expand Down
3 changes: 1 addition & 2 deletions miio/vacuum_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ def timezone(vac: miio.Vacuum, tz=None):
@click.argument('password', required=True)
@click.argument('uid', type=int, required=False)
@pass_dev
def configure_wifi(vac: miio.Vacuum, ssid: str,
password: str, uid: int):
def configure_wifi(vac: miio.Vacuum, ssid: str, password: str, uid: int):
"""Configure the wifi settings."""
click.echo("Configuring wifi to SSID: %s" % ssid)
click.echo(vac.configure_wifi(ssid, password, uid))
Expand Down

0 comments on commit 5b6bf6d

Please sign in to comment.