'Initialize a REST binary sensor.'

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

    self._hass = hass
    self.rest = rest
    self._name = name
    self._device_class = device_class
    self._state = False
    self._previous_data = None
    self._value_template = value_template
