'Get the latest data from Bbox and update the state.'

def update(self):

    self.bbox_data.update()
    if (self.type == 'down_max_bandwidth'):
        self._state = round((self.bbox_data.data['rx']['maxBandwidth'] / 1000), 2)
    elif (self.type == 'up_max_bandwidth'):
        self._state = round((self.bbox_data.data['tx']['maxBandwidth'] / 1000), 2)
    elif (self.type == 'current_down_bandwidth'):
        self._state = round((self.bbox_data.data['rx']['bandwidth'] / 1000), 2)
    elif (self.type == 'current_up_bandwidth'):
        self._state = round((self.bbox_data.data['tx']['bandwidth'] / 1000), 2)
