Skip to content

Commit

Permalink
V0.12.1 Release candidate (#154)
Browse files Browse the repository at this point in the history
Add Spanish translation (Thanks @cvc90)
Add CLA for soccer (Thanks @EyvindEmilio)
---------

Co-authored-by: Carlos V <[email protected]>
Co-authored-by: Eyvind <[email protected]>
  • Loading branch information
3 people authored May 23, 2024
1 parent e7918b2 commit a87058d
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ jobs:
pip install pytest-cov
pytest ./tests/ --cov=custom_components/teamtracker/ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The following leagues are supported natively:
- Hockey - NHL
- MMA - UFC
- U.S. Soccer - MLS, NWSL
- International Soccer - BUND (German Bundesliga), CL (Champions League), EPL (English Premiere League), LIGA (Spanish LaLiga), LIG1 (French Ligue 1), SERA (Italian Serie A), WC (World Cup), WWC (Women's World Cup)
- International Soccer - BUND (German Bundesliga), CL (Champions League), CLA (Conmebol Libertadores), EPL (English Premiere League), LIGA (Spanish LaLiga), LIG1 (French Ligue 1), SERA (Italian Serie A), WC (World Cup), WWC (Women's World Cup)
- Racing - F1, IRL
- Tennis - ATP, WTA
- Volleyball - NCAAVB, NCAAVBW
Expand Down Expand Up @@ -226,6 +226,7 @@ For the League, the following values are valid:
- ATP (Assc. of Tennis Professionals)
- BUND (German Bundesliga)
- CL (Champions League)
- CLA (Conmebol Libertadores)
- EPL (English Premiere League)
- F1 (Formula 1 Racing)
- IRL (Indy Racing League)
Expand Down Expand Up @@ -328,4 +329,4 @@ Example
team_id: "NO"
name: "Saints"
api_language: en
```
```
6 changes: 5 additions & 1 deletion custom_components/teamtracker/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@
CONF_SPORT_PATH: SOCCER,
CONF_LEAGUE_PATH: "uefa.champions",
},
"CLA": {
CONF_SPORT_PATH: SOCCER,
CONF_LEAGUE_PATH: "conmebol.libertadores",
},
"EPL": {
CONF_SPORT_PATH: SOCCER,
CONF_LEAGUE_PATH: "eng.1",
Expand Down Expand Up @@ -188,7 +192,7 @@

# Misc
TEAM_ID = ""
VERSION = "v0.11.0"
VERSION = "v0.12.1"
ISSUE_URL = "https://github.com/vasqued2/ha-teamtracker"
DOMAIN = "teamtracker"
ATTRIBUTION = "Data provided by ESPN"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/teamtracker/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"step": {
"user": {
"description": "Enter the League and Team to create the sensor.\n\nLeague: NFL, NCAAF, MLB, NBA, WNBA, NCAAM, NCAAW, NCAAVB, NCAAVBW, MLS, NWSL, BUND, CL, EPL, LIGA, LIG1, SERA, WC, PGA, ATP, WTA, F1, IRL, XFL\n\nTeam: 2-4 letter team abreviation used on ESPN's scoreboards and stats pages\n\nConference Number: For NCAA football and basketball only. See README.md for valid values. Leave blank to only include games with ranked teams.",
"description": "Enter the League and Team to create the sensor.\n\nLeague: NFL, NCAAF, MLB, NBA, WNBA, NCAAM, NCAAW, NCAAVB, NCAAVBW, MLS, NWSL, BUND, CL, CLA, EPL, LIGA, LIG1, SERA, WC, PGA, ATP, WTA, F1, IRL, XFL\n\nTeam: 2-4 letter team abreviation used on ESPN's scoreboards and stats pages\n\nConference Number: For NCAA football and basketball only. See README.md for valid values. Leave blank to only include games with ranked teams.",
"data": {
"league_id": "League",
"team_id": "Team/Athlete",
Expand Down
38 changes: 38 additions & 0 deletions custom_components/teamtracker/translations/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"config": {
"error": {
"league": "Se ha introducido una liga no válida."
},
"step": {
"user": {
"description": "Introduce la Liga y el Equipo para crear el sensor.\n\nLiga: NFL, NCAAF, MLB, NBA, WNBA, NCAAM, NCAAW, NCAAVB, NCAAVBW, MLS, NWSL, BUND, CL, CLA, EPL, LIGA, LIG1, SERA, WC, PGA, ATP, WTA, F1, IRL, XFL\n\nTeam: 2-4 letter team abreviation used on ESPN's scoreboards and stats pages\n\nConference Number: For NCAA football and basketball only. See README.md for valid values. Leave blank to only include games with ranked teams.",
"data": {
"league_id": "Liga",
"team_id": "Equipo/Atleta",
"name": "Nombre descriptivo",
"timeout": "Tiempo de espera de actualización (en segundos)",
"conference_id": "Número de conferencia"
}
},
"path": {
"title": "Configurador personalizado de API",
"description": "Introduzca la parte 'deporte' y 'liga' de la ruta de la API de ESPN para utilizar una API autoconfigurada",
"data": {
"sport_path": "Ruta deporte",
"league_path": "Ruta liga"
}
}
}
},
"options": {
"step": {
"init": {
"title": "Opciones de Team Tracker",
"description": "Ingrese el código de idioma de 2 caracteres que se usará para la llamada API.",
"data": {
"api_language": "Lenguaje API"
}
}
}
}
}
4 changes: 2 additions & 2 deletions custom_components/teamtracker/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"step": {
"user": {
"description": "Entrée le championnat et l'équipe pour créer le sensor.\n\nChampionnat: NFL, NCAAF, MLB, NBA, WNBA, NCAAM, NCAAW, NCAAVB, NCAAVBW, MLS, NWSL, BUND, CL, EPL, LIGA, LIG1, SERA, WC, PGA, ATP, WTA, F1, IRL, XFL\n\nEquipe: Abréviation de l'équipe en 2-4 lettres comme utilisé sur le tableau des scores ESPN et la page des statistiques\n\nNuméro de Conference: Pour NCAA football et basketball seulement. voir README.md pour les bonnes valeurs. Laissez le champs videpour inclure uniquement des sports avec classements d'équipes.",
"description": "Entrée le championnat et l'équipe pour créer le sensor.\n\nChampionnat: NFL, NCAAF, MLB, NBA, WNBA, NCAAM, NCAAW, NCAAVB, NCAAVBW, MLS, NWSL, BUND, CL, CLA, EPL, LIGA, LIG1, SERA, WC, PGA, ATP, WTA, F1, IRL, XFL\n\nEquipe: Abréviation de l'équipe en 2-4 lettres comme utilisé sur le tableau des scores ESPN et la page des statistiques\n\nNuméro de Conference: Pour NCAA football et basketball seulement. voir README.md pour les bonnes valeurs. Laissez le champs videpour inclure uniquement des sports avec classements d'équipes.",
"data": {
"league_id": "Championnat",
"team_id": "Equipe/Athlète",
Expand Down Expand Up @@ -35,4 +35,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/teamtracker/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"step": {
"user": {
"title": "Rastreador de equipe",
"description": "Digite a Liga e a Equipe para criar o sensor.\n\nLiga: NFL, NCAAF, MLB, NBA, WNBA, NCAAM, NCAAW, NCAAVB, NCAAVBW, MLS, NWSL, BUND, CL, EPL, LIGA, LIG1, SERA, WC, PGA, ATP, WTA, F1, IRL, XFL\n\nEquipe : abreviação de equipe de 2 a 4 letras usada nos placares e nas páginas de estatísticas da ESPN\n\nNúmero da conferência: somente para futebol e basquete da NCAA. Consulte README.md para valores válidos. Deixe em branco para incluir apenas jogos com equipes classificadas.",
"description": "Digite a Liga e a Equipe para criar o sensor.\n\nLiga: NFL, NCAAF, MLB, NBA, WNBA, NCAAM, NCAAW, NCAAVB, NCAAVBW, MLS, NWSL, BUND, CL, CLA, EPL, LIGA, LIG1, SERA, WC, PGA, ATP, WTA, F1, IRL, XFL\n\nEquipe : abreviação de equipe de 2 a 4 letras usada nos placares e nas páginas de estatísticas da ESPN\n\nNúmero da conferência: somente para futebol e basquete da NCAA. Consulte README.md para valores válidos. Deixe em branco para incluir apenas jogos com equipes classificadas.",
"data": {
"league_id": "Liga",
"team_id": "Time",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/teamtracker/translations/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"step": {
"user": {
"description": "Zadajte ligu a tím a vytvorte senzor.\n\nLiga: NFL, NCAAF, MLB, NBA, WNBA, NCAAM, NCAAW, NCAAVB, NCAAVBW, MLS, NWSL, BUND, CL, EPL, LIGA, LIG1, SERA, WC, PGA, ATP, WTA, F1, IRL, XFL\n\nTeam: 2-4-písmenová skratka tímu používaná na výsledkovej tabuli ESPN a na stránkach so štatistikami\n\nKonferenčné číslo: Len pre futbal a basketbal NCAA. Platné hodnoty nájdete v súbore README.md. Ak chcete zahrnúť iba hry s hodnotenými tímami, nechajte pole prázdne.",
"description": "Zadajte ligu a tím a vytvorte senzor.\n\nLiga: NFL, NCAAF, MLB, NBA, WNBA, NCAAM, NCAAW, NCAAVB, NCAAVBW, MLS, NWSL, BUND, CL, CLA, EPL, LIGA, LIG1, SERA, WC, PGA, ATP, WTA, F1, IRL, XFL\n\nTeam: 2-4-písmenová skratka tímu používaná na výsledkovej tabuli ESPN a na stránkach so štatistikami\n\nKonferenčné číslo: Len pre futbal a basketbal NCAA. Platné hodnoty nájdete v súbore README.md. Ak chcete zahrnúť iba hry s hodnotenými tímami, nechajte pole prázdne.",
"data": {
"league_id": "Liga",
"team_id": "Tím/Športovec",
Expand Down

0 comments on commit a87058d

Please sign in to comment.