(self)
return camera_list
Check for doorbells cameras.
Check for doorbells cameras.
Check for doorbells cameras .
def setup_lotus(self):
        """Check for doorbells cameras."""
        network_list = []
        camera_list = []
        try:
            for lotus in self.homescreen["doorbells"]:
                name = lotus["name"]
                network_id = str(lotus["network_id"])
                if network_id in self.network_ids:
                    camera_list.append(
                        {
                            network_id: {
                                "name": name,
                                "id": network_id,
                                "type": "doorbell",
                            }
                        }
                    )
                    continue
                if lotus["onboarded"]:
                    network_list.append(str(network_id))
                    self.sync[name] = BlinkLotus(self, name, network_id, lotus)
                    self.sync[name].start()
        except KeyError:
            # No sync-less devices found
            pass

        self.network_ids.extend(network_list)
        return camera_list
def setup_lotus ( self ) : network_list = [ ] camera_list = [ ] try : for lotus in self . homescreen [ "doorbells" ] : name = lotus [ "name" ] network_id = str ( lotus [ "network_id" ] ) if network_id in self . network_ids : camera_list . append ( { network_id : { "name" : name , "id" : network_id , "type" : "doorbell" , } } ) continue if lotus [ "onboarded" ] : network_list . append ( str ( network_id ) ) self . sync [ name ] = BlinkLotus ( self , name , network_id , lotus ) self . sync [ name ] . start ( ) except KeyError : # No sync-less devices found pass self . network_ids . extend ( network_list ) return camera_list