'Update device state.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    _LOGGER.info('Updating')
    try:
        self.state = (self._dovado.state or {})
        if (not self.state):
            return False
        self.state.update(connected=(self.state.get('modem    status') == 'CONNECTED'))
        _LOGGER.debug('Received:    %s', self.state)
        return True
    except OSError as error:
        _LOGGER.warning('Could    not    contact    the    router:    %s', error)
