def __init__(self, option_type):
    'Initialize the sensor.'
    self._name = OPTION_TYPES[option_type]
    self.type = option_type
    self._state = None
Initialize the sensor.
def __init__(self, option_type):
    
    self._name = OPTION_TYPES[option_type]
    self.type = option_type
    self._state = None