'Get the latest data.'

@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):

    service = self.calendar_service.get()
    params = dict(DEFAULT_GOOGLE_SEARCH_PARAMS)
    params['timeMin'] = dt.now().isoformat('T')
    params['calendarId'] = self.calendar_id
    if self.search:
        params['q'] = self.search
    events = service.events()
    result = events.list(**params).execute()
    items = result.get('items', [])
    self.event = (items[0] if (len(items) == 1) else None)
    return True
