Skip to content

Commit

Permalink
Strip tokens of whitespace before using.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandMoff100 committed Dec 17, 2024
1 parent c9fcc1b commit 877ce6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant_api/rawbaseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(
if global_request_kwargs is None:
global_request_kwargs = {}
self.api_url = api_url
self.token = token
self.token = token.strip()
self.global_request_kwargs = global_request_kwargs

if not api_url.endswith("/"):
Expand Down

0 comments on commit 877ce6c

Please sign in to comment.