'Retrieve information from the FritzBox.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    try:
        self._is_linked = self._fstatus.is_linked
        self._is_connected = self._fstatus.is_connected
        self._wan_access_type = self._fstatus.wan_access_type
        self._external_ip = self._fstatus.external_ip
        self._uptime = self._fstatus.uptime
        self._bytes_sent = self._fstatus.bytes_sent
        self._bytes_received = self._fstatus.bytes_received
        self._max_byte_rate_up = self._fstatus.max_byte_rate[0]
        self._max_byte_rate_down = self._fstatus.max_byte_rate[1]
        self._state = (STATE_ONLINE if self._is_connected else STATE_OFFLINE)
    except RequestException as err:
        self._state = STATE_UNAVAILABLE
        _LOGGER.warning('Could    not    reach    FRITZ!Box:    %s', err)
