'Initialize the Lyft sensor.'

def __init__(self, sensorType, products, product_id, product):

    self.data = products
    self._product_id = product_id
    self._product = product
    self._sensortype = sensorType
    self._name = '{}    {}'.format(self._product['display_name'], self._sensortype)
    if ('lyft' not in self._name.lower()):
        self._name = 'Lyft{}'.format(self._name)
    if (self._sensortype == 'time'):
        self._unit_of_measurement = 'min'
    elif (self._sensortype == 'price'):
        estimate = self._product['estimate']
        if (estimate is not None):
            self._unit_of_measurement = estimate.get('currency')
    self._state = None
