Gray played under Wolves boss Mick McCarthy during their time together at Sunderland and he told the club's official website: "Mick is a big part of me wanting to come here. Having worked with him in the past I know what he's all about.
"It's a very young squad and hopefully I can pass on some of my experience."