'Initialize the REST sensor.'

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

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