def __init__(self, hass, sequence, name=None, change_listener=None):
        """Initialize the script."""
        self.hass = hass
        self.sequence = cv.SCRIPT_SCHEMA(sequence)
        self.name = name
        self._change_listener = change_listener
        self._cur = -1
        self.last_action = None
        self.can_cancel = any(action in CONF_DELAY for action
                              in self.sequence)
        self._lock = threading.Lock()
        self._delay_listener = None
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/helpers/script.py/Script.__init__/swapped operands of `in`