Okay, what's wrong with that? 
Your boss was the idiot, and you got the promotion because you deserve the promotion for the slot available. Had your boss not done that, then you would have to wait for them to screw up some other way, so you would still end up with the position.
So, what difference does it make "how" you got, just understand why you got it. 