Do not ask password if login method is xiaomi

pull/23/head
Kirill Snezhko 2020-11-12 12:56:40 +00:00
rodzic 3c4190df0c
commit d02a6a1e1e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -242,7 +242,7 @@ if __name__ == "__main__":
table.add_column("MAC", style="dim", width=17, justify='center')
table.add_column("auth_key", width=50, justify='center')
if args.password is None:
if args.password is None and args.method == "amazfit":
args.password = getpass.getpass()
device = HuamiAmazfit(method=args.method,