From 877ce6cd55fdcca1579f64a7c09bbb31627e8c01 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 17 Dec 2024 13:54:08 -0600 Subject: [PATCH] Strip tokens of whitespace before using. --- homeassistant_api/rawbaseclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant_api/rawbaseclient.py b/homeassistant_api/rawbaseclient.py index 6f3c2df..37530f9 100644 --- a/homeassistant_api/rawbaseclient.py +++ b/homeassistant_api/rawbaseclient.py @@ -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("/"):