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")