yo-han / Home-Assistant-Carelink

Unofficial Home Assistant Carelink Component
MIT License
24 stars 12 forks source link

carelink_carepartner_api_login.py produces syntax errors #84

Closed nightfever77 closed 4 months ago

nightfever77 commented 4 months ago

Followed the instructions for Windows environment and getting this error:

PS C:\Users\night> python carelink_carepartner_api_login.py
  File "C:\Users\night\carelink_carepartner_api_login.py", line 112
    <title>Home-Assistant-Carelink/utils/carelink_carepartner_api_login.py at develop · yo-han/Home-Assistant-Carelink</title>
                                                                                      ^
SyntaxError: invalid character '·' (U+00B7)

If I remove this character from the script, it comes to another syntax error:

PS C:\Users\night> python carelink_carepartner_api_login.py
  File "C:\Users\night\carelink_carepartner_api_login.py", line 7
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax

Any help?

nightfever77 commented 4 months ago

Found the mistake: there is a lot of HTML stuff coming into the script if you right click and save as. Opened the file here and copied the raw code