Sheffield Wednesday boss Carlos Carvalhal admitted the Owls were fortunate to emerge with all three points against Brentford.
The Bees, who led through Nico Yennaris' early opener, missed some gilt-edged chances and were punished before the break when Gary Hooper scored.
The second half was more even but Wednesday won it when Ross Wallace headed home after the Bees failed to clear a corner.
And the Portuguese boss admitted his side had the rub of the green, which deserted them the last time the two teams met, and that the Bees are in a false position.
Carvahal said: "We were a little lucky, just like Brentford were here last season when they won 2-1. I knew it would be a very difficult game as they are in a false position in the division.
"We are a team with a big heart and that's why we won today. In the first half, Brentford started better and had a couple of chances to add a second goal and it would have been very difficult for us.
"We took a bit of a risk and after we equalised, we corrected some tactical things in the second half and began to control the game."