Using the http trigger is the best way to do stuff like that at the moment - it doesn't have to be an online bot, all you need to do is make a http GET request to the url you can copy from the states menu. I'm pretty sure there's a python function to do that, and that way you can reuse your script!
The name of the state was DecayMinor. Renaming it to State1 yielded the same syntax error. I tried using both "" and `` to see if that was causing the syntax error but that didn't seem to be the case.