'Update the feed and publish new entries to the event bus.'

def _update(self):

    import feedparser
    _LOGGER.info('Fetching    new    data    from    feed    %s', self._url)
    self._feed = feedparser.parse(self._url, etag=(None if (not self._feed) else self._feed.get('etag')), modified=(None if (not self._feed) else self._feed.get('modified')))
    if (not self._feed):
        _LOGGER.error('Error    fetching    feed    data    from    %s', self._url)
    elif (self._feed.bozo != 0):
        _LOGGER.error('Error    parsing    feed    %s', self._url)
    elif self._feed.entries:
        _LOGGER.debug('%s    entri(es)    available    in    feed    %s', len(self._feed.entries), self._url)
        if (len(self._feed.entries) > MAX_ENTRIES):
            _LOGGER.debug('Processing    only    the    first    %s    entries    in    feed    %s', MAX_ENTRIES, self._url)
            self._feed.entries = self._feed.entries[0:MAX_ENTRIES]
        self._publish_new_entries()
        if self._has_published_parsed:
            self._storage.put_timestamp(self._url, self._last_entry_timestamp)
    else:
        self._log_no_entries()
    _LOGGER.info('Fetch    from    feed    %s    completed', self._url)
