Skip to content

Commit

Permalink
fixed __get_login_session by using empty headers (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
sedy89 authored Jun 29, 2023
1 parent 11ab9a6 commit 9ba958e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions custom_components/carelink/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,8 @@ def __init__(

self._async_client = None
self._cookies = None
self.__common_headers = {
# Common browser headers
"Accept-Language": "en;q=0.9, *;q=0.8",
"Connection": "keep-alive",
"sec-ch-ua": '"Google Chrome";v="87", " Not;A Brand";v="99", "Chromium";v="87"',
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 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",
}
self.__common_headers = {}


@property
def async_client(self):
Expand Down

0 comments on commit 9ba958e

Please sign in to comment.