vasqued2 / ha-teamtracker

Home Assistant integration that provides real-time scores in multiple professional (NBA, NFL, NHL, MLB, MLS, and more), college (NCAA), and international (soccer, golf, tennis, mma, racing) sports using ESPN APIs.
166 stars 20 forks source link

NASCAR? #38

Closed matthewmarra closed 1 year ago

matthewmarra commented 1 year ago

See you have F1 and IRL, which is great. Wondering if we could get NASCAR added?

vasqued2 commented 1 year ago

The API doesn’t return an image/flag for the drivers so it uses a default error logo, but it should work. If not, sport_path = racing, league_path = nascar-premier

Trying to decide how to handle before publishing official support. Probably just use the NASCAR logo for the drivers. Thoughts?

vasqued2 commented 1 year ago

Fixed the teamtracker-card to display the driver's initials. Although not documented, you can type in "NASCAR" for the league and it will work.

matthewmarra commented 1 year ago

awesome that's great! meant to get back to you sooner to help but very much appreciate it.