'Initialize the sensor.'

def __init__(self, name, broadlink_data, sensor_type):

    self._name = '{}    {}'.format(name, SENSOR_TYPES[sensor_type][0])
    self._state = None
    self._type = sensor_type
    self._broadlink_data = broadlink_data
    self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
