def extract_cloud_info(self, cloud_device_info):
    'Extract the cloud info.'
    if (self.host is None):
        self.host = cloud_device_info['localip']
    if (self.mac is None):
        self.mac = format_mac(cloud_device_info['mac'])
    if (self.model is None):
        self.model = cloud_device_info['model']
    if (self.name is None):
        self.name = cloud_device_info['name']
    self.token = cloud_device_info['token']
Extract the cloud info.
def extract_cloud_info(self, cloud_device_info):
    
    if (self.host is None):
        self.host = cloud_device_info['localip']
    if (self.mac is None):
        self.mac = format_mac(cloud_device_info['mac'])
    if (self.model is None):
        self.model = cloud_device_info['model']
    if (self.name is None):
        self.name = cloud_device_info['name']
    self.token = cloud_device_info['token']