Support wifi scan & join for bulbs using a different interface (#49)

This commit is contained in:
Teemu R
2020-04-24 16:57:04 +02:00
committed by GitHub
parent 0c71957aa8
commit 28c1811aef
2 changed files with 29 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ async def scan(dev):
@pass_dev
async def join(dev: SmartDevice, ssid, password, keytype):
"""Join the given wifi network."""
click.echo("Asking the device to connect to {ssid}.." % (ssid))
click.echo(f"Asking the device to connect to {ssid}..")
res = await dev.wifi_join(ssid, password, keytype=keytype)
click.echo(
f"Response: {res} - if the device is not able to join the network, it will revert back to its previous state."