Skip to content

Commit

Permalink
fix(EU): missing function (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
asychow committed Apr 24, 2024
1 parent f3ddc82 commit 2ea9202
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hyundai_kia_connect_api/KiaUvoApiEU.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,14 @@ def __init__(self, region: int, brand: int, language: str) -> None:
+ "&state=$service_id:$user_id"
)

def _get_control_headers(self, token: Token) -> dict:
control_token, _ = self._get_control_token(token)
authenticated_headers = self._get_authenticated_headers(token)
return authenticated_headers | {
"Authorization": control_token,
"AuthorizationCCSP": control_token,
}

def login(self, username: str, password: str) -> Token:
stamp = self._get_stamp()
device_id = self._get_device_id(stamp)
Expand Down

0 comments on commit 2ea9202

Please sign in to comment.