maybe I'm missing it, but why do you need to assign a hostgroup to a
discovered host? (which you can btw)? just change the type when you need it?