Skip to content

Commit e3df3b1

Browse files
authored
Merge pull request #203 from GrandMoff100/clean-tokens
Strip tokens of whitespace before using.
2 parents ec86ac9 + 8737340 commit e3df3b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

homeassistant_api/rawbaseclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(
2525
if global_request_kwargs is None:
2626
global_request_kwargs = {}
2727
self.api_url = api_url
28-
self.token = token
28+
self.token = token.strip()
2929
self.global_request_kwargs = global_request_kwargs
3030

3131
if not api_url.endswith("/"):

0 commit comments

Comments
 (0)