How to deal with friend having homophobic parents?

My one friend lives with his parents and because his dad's homophobic I've never allowed to go over to his house.

Funny enough though it took him getting a girlfriend for his dad to be okay for me to go into his home because he was scared I turned my friend gay.

How do you deal with your friend having homophobes in his family and they control him?

I told him though that it's kind of shitty that he had to get a girlfriend for his father to be okay for me to be around him. Keep in mind my friend is also 30 so we're not talking about teenagers.

Honestly too my friend isn't really that hot.