Please....If God created everything than he also created temptation, Satan and all the ways man can go astray. You even state he knew exactly what was going to happen.
If God created us in a way that could make us tempted than of course he planted the temptation. How could he not? He created it in your words.