Skip to content

Commit

Permalink
Use email from wyze api response directly
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Aug 29, 2024
1 parent 7ea0e29 commit a243579
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/wyze_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a243579

Please sign in to comment.