This has no morally correct answer. Therefore, it is a matter purely of taste. Therefore, while I voted "it doesn't matter" purely for the sake of putting a poll option in, the real answer is "depends on the context of the fiction at hand." It's perfectly okay for a story to exist solely to appease, entertain, or represent, any particular market demographic, be it positive or negative. I'd love to see more kids shows with a variety of people--white or black, tall or short, skinny or fat, straight or gay, or whatever else. Normalize it for kids, yo, that'd be neat. 'Cept, something to keep in mind is this: Parents who utterly loathe, say, homosexuals, and who don't want their children to be "infected by the gay", will just prevent their children from watching TV shows containing gay characters.
Also, a TV show, a movie, a book, or whatever else, only has as much power as you grant it. It's ultimately fiction at the end of the day, and the same barrier that prevents violent video games from turning me into a psychopathic murderer or pornography from turning me into a rapist, also applies to more minor things, like tolerance and acceptance. You can preach a good value all day, but if a person doesn't care for it, they'll never hear you.
So, therefore, do whatever you like with TV or movies or games or books. Have as much or as little representation in the media as you like. As a personal example: Legend of Renalta, the RP I'm running now, has a couple bisexual NPC's. LGBT characters appear quite often in my stories because I grew up with a homosexual best friend, and I saw how she was bullied through life for it by other people. She role plays with me, so my fantasy worlds adjusted to include materials that would make her feel less like some terrible outcast, and more like someone who is just... A normal person. Not "a normal person who is gay", just a normal person. Whilst I've included that, I don't generally touch upon race issues very often. I've written black NPC's, but they don't pop up as often as LGBT characters. Some would say that's a bad thing. Others would say to stick to my guns. Neither of their opinions matter, only mine does.
Do I like my own stories?
Yes.
Do I think they could improve?
Always.
Leave authors and directors alone to build whatever they want. That's how you get new and interesting stuff. That's how you get shit on entirely opposite ends of the spectrum to exist. Stuff like Steven Universe, or Rick & Morty. Bob Ross, or George Carlin. Let creators create freely, and let critics speak freely. That's how art thrives.