'Initialize the sensor.'

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

    self.hass = hass
    self.dweet = dweet
    self._name = name
    self._value_template = value_template
    self._state = STATE_UNKNOWN
    self._unit_of_measurement = unit_of_measurement
