def update(self):
        self.data.update()
        value = self.data.value

        if self._value_template is not None:
            value = template.render_with_possible_json_value(
                self._hass, self._value_template, value, False)
        if value == self._payload_on:
            self._state = True
        elif value == self._payload_off:
            self._state = False
Create a new marathon application with a given
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/command_line.py/CommandBinarySensor.update--crossover with--dataset/ETHPy150Open Yelp/paasta/paasta_tools/bounce_lib.py/create_marathon_app