True about Freud, but unfortunately, psychoanalysis, especially in the US, became very homophobic during the 50s and 60s. I think things are a lot better now however. And in the UK, I remember quite homophobic remarks by therapists not that long ago, but again, it has improved. A friend of mine in training was told just not to mention it, don't ask, don't tell, kind of thing. I used to be on the books at Pink Therapy, although not gay.
I think homosexuality was taken off DSM in 1987, quite late. (Classification of mental disorders).