

def __init__(self, event, name, data_type):
    'Initialize the sensor.'
    self.event = event
    self._unit_of_measurement = None
    self.data_type = None
    self._name = name
    if data_type:
        self.data_type = data_type
        self._unit_of_measurement = DATA_TYPES[data_type]

dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/rfxtrx.py RfxtrxSensor.__init__/original