'Initialize the sensor.'

def __init__(self, pygtfs, name, origin, destination, offset):

    self._pygtfs = pygtfs
    self.origin = origin
    self.destination = destination
    self._offset = offset
    self._custom_name = name
    self._name = ''
    self._unit_of_measurement = 'min'
    self._state = 0
    self._attributes = {}
    self.lock = threading.Lock()
    self.update()
