From d02a6a1e1e18729b23b995ae74cb2bd19254b154 Mon Sep 17 00:00:00 2001 From: Kirill Snezhko Date: Thu, 12 Nov 2020 12:56:40 +0000 Subject: [PATCH] Do not ask password if login method is xiaomi --- huami_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/huami_token.py b/huami_token.py index fbb36ba..a2cca3d 100644 --- a/huami_token.py +++ b/huami_token.py @@ -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,