fix flake8 failure
make sure we have either transition or to_state, never both