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: