Skip to content

Commit

Permalink
fix: Restore common headers to fix login issue (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
yo-han authored Aug 23, 2023
1 parent a031d4c commit 1f095ab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom_components/carelink/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@ def __init__(

self._async_client = None
self._cookies = None
self.__common_headers = {}
self.__common_headers = {
# Common browser headers
"Accept-Language": "en;q=0.9, *;q=0.8",
"Connection": "keep-alive",
"sec-ch-ua":"\"Google Chrome\";v=\"115\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"115\"",
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
}


@property
Expand Down

0 comments on commit 1f095ab

Please sign in to comment.