(self)
return network_dict
Create the network ids for onboarded networks.
Create the network ids for onboarded networks.
Create the network ids for onboarded networks .
def setup_network_ids(self):
        """Create the network ids for onboarded networks."""
        all_networks = []
        network_dict = {}
        try:
            for network, status in self.networks.items():
                if status["onboarded"]:
                    all_networks.append(f"{network}")
                    network_dict[status["name"]] = network
        except AttributeError:
            _LOGGER.error(
                "Unable to retrieve network information from %s", self.networks
            )
            raise BlinkSetupError

        self.network_ids = all_networks
        return network_dict
def setup_network_ids ( self ) : all_networks = [ ] network_dict = { } try : for network , status in self . networks . items ( ) : if status [ "onboarded" ] : all_networks . append ( f"{network}" ) network_dict [ status [ "name" ] ] = network except AttributeError : _LOGGER . error ( "Unable to retrieve network information from %s" , self . networks ) raise BlinkSetupError self . network_ids = all_networks return network_dict