Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin issues #941

Merged
merged 4 commits into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions blinkpy/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def extract_login_info(self):
self.token = self.login_response["auth"]["token"]
self.client_id = self.login_response["account"]["client_id"]
self.account_id = self.login_response["account"]["account_id"]
self.user_id = self.login_response["account"]["user_id"]
fronzbot marked this conversation as resolved.
Show resolved Hide resolved

async def startup(self):
"""Initialize tokens for communication."""
Expand Down
6 changes: 6 additions & 0 deletions blinkpy/blinkpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ async def setup_owls(self):
"""Check for mini cameras."""
network_list = []
camera_list = []
if self.homescreen is None:
# Don't try to iterate if homescreen is not defined
return camera_list
fronzbot marked this conversation as resolved.
Show resolved Hide resolved
try:
for owl in self.homescreen["owls"]:
name = owl["name"]
Expand All @@ -203,6 +206,9 @@ async def setup_lotus(self):
"""Check for doorbells cameras."""
network_list = []
camera_list = []
if self.homescreen is None:
# Don't try to iterate if homescreen is not defined
return camera_list
fronzbot marked this conversation as resolved.
Show resolved Hide resolved
try:
for lotus in self.homescreen["doorbells"]:
name = lotus["name"]
Expand Down
Loading