mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-17 21:08:03 +00:00
Handle network key type
Aims to handle network key type by using a text match that assigns the integer, as reported in https://github.com/python-kasa/python-kasa/issues/1325 One solution of multiple potential solutions. Adds the default of 3, which should be WPA2, and is set as a default in multiple other locations within the code. May need more documentation on the levels (0-4) and their correspondence.
This commit is contained in:
@@ -35,7 +35,7 @@ async def scan(dev):
|
||||
|
||||
@wifi.command()
|
||||
@click.argument("ssid")
|
||||
@click.option("--keytype", prompt=True)
|
||||
@click.option("--keytype", prompt=True, default="3")
|
||||
@click.option("--password", prompt=True, hide_input=True)
|
||||
@pass_dev
|
||||
async def join(dev: Device, ssid: str, password: str, keytype: str):
|
||||
|
Reference in New Issue
Block a user