From a243579f3c22d0c5cba412df66306f12be0a1cff Mon Sep 17 00:00:00 2001 From: mrlt8 <67088095+mrlt8@users.noreply.github.com> Date: Wed, 28 Aug 2024 20:28:29 -0700 Subject: [PATCH] Use email from wyze api response directly --- app/wyze_bridge.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/wyze_bridge.py b/app/wyze_bridge.py index 2ec7b23a..5f2ecfdb 100644 --- a/app/wyze_bridge.py +++ b/app/wyze_bridge.py @@ -34,8 +34,7 @@ def run(self, fresh_data: bool = False) -> None: def _initialize(self, fresh_data: bool = False) -> None: self.api.login(fresh_data=fresh_data) - email = self.api.creds.email or self.api.get_user().email - WbAuth.set_email(email=email, force=fresh_data) + WbAuth.set_email(email=self.api.get_user().email, force=fresh_data) self.mtx.setup_auth(WbAuth.api, STREAM_AUTH) self.setup_streams() if self.streams.total < 1: