docs: async def get_departures(self):
          """Get departure info from stopid."""
          from .common import CommonFunctions
          common = CommonFunctions(self.loop, self.session)
          departures = []
          endpoint = '{}/StopVisit/GetDepartures/{}'.format(BASE_URL,
                                                            str(self.stopid))
          data = await common.api_call(endpoint)
          for entries in data or []:
              try:
                  data = entries['MonitoredVehicleJourney']
                  if self.destination is not None:
                      if data['DestinationName'] == self.destination:
                          data = entries['MonitoredVehicleJourney']
                          line = data['LineRef']
                          destinationname = data['DestinationName']
                          monitored = data['MonitoredCall']
                          time = monitored['ExpectedDepartureTime']
                          departures.append({"time": time,
                                             "line": line,
                                             "destination": destinationname})
                  else:
                      data = entries['MonitoredVehicleJourney']
                      line = data['LineRef']
                      destinationname = data['DestinationName']
                      monitored = data['MonitoredCall']
                      time = monitored['ExpectedDepartureTime']
                      departures.append({"time": time,
                                         "line": line,
                                         "destination": destinationname})
              except (TypeError, KeyError, IndexError) as error:
                  LOGGER.error('Error connecting to Ruter, %s', error)
          self._departures = await common.sort_data(departures, 'time')