Jordi Alba popped up in injury time to settle the game 2-1.
Pedro said: "We've had a couple of games where we needed to mount a comeback, it's never easy and we have to give credit to the team. This team doesn't give up.
"I felt good on the pitch, it's a shame that I wasn't lucky in front of goal - just like the whole team.
"When you lose possession on offence, you need to win the ball back on defence; that's my job too."