vasqued2 / ha-teamtracker-card

A Home Assistant frontend custom card that will display real-time updates for teams tracked with the ha-teamtracker integration. Has custom in-game layouts for football, baseball, basketball, hockey, soccer, golf, tennis, racing, and mma.
GNU General Public License v3.0
71 stars 16 forks source link

Team display in card #22

Closed mrkcrc closed 1 year ago

mrkcrc commented 1 year ago

I love the card but I just realized the display order of the team in the card is inaccurate. Granted I'm only using the cards for football currently but It seems to always list the team you are tracking first on the card instead of the 'Away' team in that matchup. The display should always be Away team vs. (at) Home Team. Not a big deal but just thought it was worth mentioning.

vasqued2 commented 1 year ago

Good timing. v0.5.2 that was released yesterday addresses this.

If you would prefer that the Home team always be placed on the left or right side (different countries and sports have different standards so there is no universal order that works for everyone), you can now use the home_side option in the card configuration to do so. Valid values are left and right.

If you don't use the home_side option, it will continue to function as it does today and put the team you are tracking first.

Try it and let me know if it works or you have any problems with it.

Example

  - type: custom:teamtracker-card
    entity: sensor.tt_test
    outline: true
    outline_color: lightgray
    show_league: true
    home_side: right
mrkcrc commented 1 year ago

Ah! Excellent point and good solution. Thx.