Skip to content

Commit

Permalink
Remove quotes from credentials #1158
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed May 17, 2024
1 parent 7b77571 commit cf92b61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/wyzebridge/wyze_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit cf92b61

Please sign in to comment.