'Construct a live bus time sensor.'

def __init__(self, api_app_id, api_app_key, stop_atcocode, bus_direction, interval):

    self._stop_atcocode = stop_atcocode
    self._bus_direction = bus_direction
    self._next_buses = []
    self._destination_re = re.compile('{}'.format(bus_direction), re.IGNORECASE)
    sensor_name = 'Next    bus    to    {}'.format(bus_direction)
    stop_url = 'bus/stop/{}/live.json'.format(stop_atcocode)
    UkTransportSensor.__init__(self, sensor_name, api_app_id, api_app_key, stop_url)
    self.update = Throttle(interval)(self._update)
