'Initialize the sensor.'

def __init__(self, hass, hp_ilo_data, sensor_type, sensor_name, sensor_value_template, unit_of_measurement):

    self._hass = hass
    self._name = sensor_name
    self._unit_of_measurement = unit_of_measurement
    self._ilo_function = SENSOR_TYPES[sensor_type][1]
    self.hp_ilo_data = hp_ilo_data
    if (sensor_value_template is not None):
        sensor_value_template.hass = hass
    self._sensor_value_template = sensor_value_template
    self._state = None
    self._state_attributes = None
    _LOGGER.debug('Created    HP    ILO    sensor    %r', self)
