'Initialize the sensor.'

def __init__(self, hass, data, name, unit_of_measurement, value_template):

    self._hass = hass
    self.data = data
    self._name = name
    self._state = None
    self._unit_of_measurement = unit_of_measurement
    self._value_template = value_template
