From 6e3964a0303bb12ef5a4bfb24425dda543ad559c Mon Sep 17 00:00:00 2001 From: Kirill Snezhko <4477094+argrento@users.noreply.github.com> Date: Sat, 27 Feb 2021 09:56:23 +0300 Subject: [PATCH] Add correct casting --- huami_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/huami_token.py b/huami_token.py index 7db645d..758ed86 100644 --- a/huami_token.py +++ b/huami_token.py @@ -351,7 +351,7 @@ if __name__ == "__main__": print(f"\nChecking for device {idx}...") device.get_firmware(wearable) elif int(wearable_id) in range(0, len(wearables)): - device.get_firmware(wearables[wearable_id]) + device.get_firmware(wearables[int(wearable_id)]) else: print("Wrong input!")