From cf92b61bc1c1a8188f3826a2e3441f8b91fa3c83 Mon Sep 17 00:00:00 2001 From: mrlt8 <67088095+mrlt8@users.noreply.github.com> Date: Thu, 16 May 2024 20:21:35 -0700 Subject: [PATCH] Remove quotes from credentials #1158 --- app/wyzebridge/wyze_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/wyzebridge/wyze_api.py b/app/wyzebridge/wyze_api.py index f2cdf452..54880e35 100644 --- a/app/wyzebridge/wyze_api.py +++ b/app/wyzebridge/wyze_api.py @@ -77,10 +77,10 @@ class WyzeCredentials: __slots__ = "email", "password", "key_id", "api_key" def __init__(self) -> None: - self.email: str = getenv("WYZE_EMAIL", "").strip() - self.password: str = getenv("WYZE_PASSWORD", "").strip() - self.key_id: str = getenv("API_ID", "").strip() - self.api_key: str = getenv("API_KEY", "").strip() + self.email: str = getenv("WYZE_EMAIL", "").strip("'\" \n\t\r") + self.password: str = getenv("WYZE_PASSWORD", "").strip("'\" \n\t\r") + self.key_id: str = getenv("API_ID", "").strip("'\" \n\t\r") + self.api_key: str = getenv("API_KEY", "").strip("'\" \n\t\r") if not self.is_set: logger.warning("[WARN] Credentials are NOT set")