The polled button of the state has no effect on the generated code (see capture below). We tested it with Python and PythonHL.