diff --git a/blinkpy/blinkpy.py b/blinkpy/blinkpy.py index e46a2c56..bab54ab8 100644 --- a/blinkpy/blinkpy.py +++ b/blinkpy/blinkpy.py @@ -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 try: for owl in self.homescreen["owls"]: name = owl["name"] @@ -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 try: for lotus in self.homescreen["doorbells"]: name = lotus["name"]