argrento / huami-token

Script to obtain watch or band bluetooth token from Huami servers
MIT License
410 stars 94 forks source link

Invalid syntax #37

Closed cockadoolie closed 2 years ago

cockadoolie commented 2 years ago

I've processed all the prerequisite steps, when I run the script [either amazefish or xiaomi login method] I get the following error:

File "huami_token.py", line 65 def get_access_token(self) -> str: ^ SyntaxError: invalid syntax

argrento commented 2 years ago

Hi! You should use python3, bacause -> -- is a part of python3 syntax.