Skip to content

Commit 41b86dd

Browse files
authored
v0.14.9 Release Candidate (#218)
- Expand API limit to support college sports that do not have conference ID's - Update documentation
1 parent 03a8869 commit 41b86dd

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,18 @@ Some attributes are only available for certain sports.
316316

317317
| Name | Value | Relevant States |
318318
| --- | --- | --- |
319+
| `sport` | Name of the sport for the sensor | `PRE` `IN` `POST` |
320+
| `sport_path` | The `sport_path` for the sensor used to generate the API URL | `PRE` `IN` `POST` |
321+
| `league` | Name of the league for the sensor | `PRE` `IN` `POST` |
322+
| `league_path` | The `league_path` for the sensor used to generate the API URL | `PRE` `IN` `POST` |
323+
| `league_logo` | URL for the logo of the league | `PRE` `IN` `POST` |
324+
| `season` | Identifies the type of season (i.e. pre, regular, post) | `PRE` `IN` `POST` |
319325
| `date` | Date and time of the game | `PRE` `IN` `POST` |
320326
| `kickoff_in` | Human-readable string for how far away the game is (eg. "in 30 minutes" or "tomorrow") | `PRE` `IN` `POST` |
321327
| `quarter` | The current quarter of gameplay | `IN` |
322328
| `clock` | The clock value within the quarter (should never be higher than 15:00). Inning (MLB only). | `IN` |
323329
| `event_name` | The name of the event being played (eg. "The Masters") | `PRE` `IN` `POST` |
330+
| `series_summary` | If event is part of a series, provides a summary of the series | `PRE` `IN` `POST` |
324331
| `event_url` | An ESPN URL for the event | `PRE` `IN` `POST` |
325332
| `venue` | The name of the stadium where the game is being played (eg. "Arrowhead Stadium") | `PRE` `IN` `POST` |
326333
| `location` | The city and state where the game is being played (eg. "Pittsburgh, PA") | `PRE` `IN` `POST` |
@@ -338,13 +345,17 @@ Some attributes are only available for certain sports.
338345
| `on_third` | Baserunner on third base (MLB only). | `IN` |
339346
| `team_total_shots` | Total shots by team (MLS only). | `IN` |
340347
| `team_shots_on_target` | Shots on net by team (MLS only). | `IN` |
341-
| `opponent_total_shots` | Total shots by team (MLS only). | `IN` |
342-
| `opponent_shots_on_target` | Shots on net by team (MLS only). | `IN` |
348+
| `team_sets_won` | Sets won by team. | `IN` |
349+
| `opponent_total_shots` | Total shots by opponent (MLS only). | `IN` |
350+
| `opponent_shots_on_target` | Shots on net by opponent (MLS only). | `IN` |
351+
| `opponent_sets_won` | Sets won by opponent. | `IN` |
343352
| `team_abbr` | The abbreviation for your team (ie. `SEA` for the Seahawks). | `PRE` `IN` `POST` `BYE` |
344353
| `team_id` | A numeric ID for your team, used to match `possession` above. | `PRE` `IN` `POST` |
345354
| `team_name` | Your team's name (eg. "Seahawks"). Note this does not include the city name. | `PRE` `IN` `POST` `BYE` |
355+
| `team_long_name` | Your team's long name (eg. "Seatle Seahawks"). Note this includes the city name. | `PRE` `IN` `POST` `BYE` |
346356
| `team_record` | Your team's current record (eg. "2-3"). | `PRE` `IN` `POST` |
347357
| `team_rank` | Your team's current rank (null if unranked or does not apply). | `PRE` `IN` `POST` |
358+
| `team_conference_id` | Your team's conference ID. | `PRE` `IN` `POST` |
348359
| `team_homeaway` | Your team's home/away status. Either `home` or `away`. | `PRE` `IN` `POST` |
349360
| `team_logo` | A URL for a 500px wide PNG logo for the team. | `PRE` `IN` `POST` `BYE` |
350361
| `team_url` | An ESPN URL for the team. | `PRE` `IN` `POST` `BYE` |
@@ -356,8 +367,10 @@ Some attributes are only available for certain sports.
356367
| `opponent_abbr` | The abbreviation for your opponent (ie. `SEA` for the Seahawks). | `PRE` `IN` `POST` `BYE` |
357368
| `opponent_id` | A numeric ID for your opponent, used to match `possession` above. | `PRE` `IN` `POST` |
358369
| `opponent_name` | Your opponent's name (eg. "Seahawks"). Note this does not include the city name. | `PRE` `IN` `POST` `BYE` |
370+
| `opponent_long_name` | Your opponent's long name (eg. "Seatle Seahawks"). Note this includes the city name. | `PRE` `IN` `POST` `BYE` |
359371
| `opponent_record` | Your opponent's current record (eg. "2-3"). | `PRE` `IN` `POST` |
360372
| `opponent_rank` | Your opponent's current rank (null if unranked or does not apply). | `PRE` `IN` `POST` |
373+
| `opponent_conference_id` | Your opponent's conference ID. | `PRE` `IN` `POST` |
361374
| `opponent_homeaway` | Your opponent's home/away status. Either `home` or `away`. | `PRE` `IN` `POST` |
362375
| `opponent_logo` | A URL for a 500px wide PNG logo for the opponent. | `PRE` `IN` `POST` `BYE` |
363376
| `opponent_url` | An ESPN URL for the opponent. | `PRE` `IN` `POST` `BYE` |
@@ -367,7 +380,8 @@ Some attributes are only available for certain sports.
367380
| `opponent_winner` | Flag indicating whether the opponent has won the competition or not. | `POST` |
368381
| `opponent_timeouts` | The number of remaining timeouts your opponent has. | `PRE` `IN` `POST` |
369382
| `last_update` | A timestamp for the last time data was fetched for the game. If you watch this in real-time, you should notice it updating every 10 minutes, except for during the game (and for the ~20 minutes pre-game) when it updates every 5 seconds. | `PRE` `IN` `POST` `BYE` |
370-
| `api_message` | A message giving information to help troubleshoot when the sensor is state `NOT_FOUND` | `NOT_FOUND` |
383+
| `api_message` | A message giving information to help troubleshoot when the sensor is state | `PRE` `IN` `POST` `BYE` `NOT_FOUND` |
384+
| `api_url` | The URL of the ESPN API call | `PRE` `IN` `POST` `BYE` `NOT_FOUND` |
371385

372386

373387
## Services

custom_components/teamtracker/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# API
66
URL_HEAD = "http://site.api.espn.com/apis/site/v2/sports/"
77
URL_TAIL = "/scoreboard"
8-
API_LIMIT = 25
8+
API_LIMIT = 50
99
USER_AGENT = (
1010
"Mozilla/5.0 (Macintosh; Intel Mac OS X 11_6) AppleWebKit/605.1.15 (KHTML, like "
1111
"Gecko) Version/15.0 Safari/605.1.15"
@@ -195,7 +195,7 @@
195195

196196
# Misc
197197
TEAM_ID = ""
198-
VERSION = "v0.14.8"
198+
VERSION = "v0.14.9"
199199
ISSUE_URL = "https://github.com/vasqued2/ha-teamtracker"
200200
DOMAIN = "teamtracker"
201201
ATTRIBUTION = "Data provided by ESPN"

0 commit comments

Comments
 (0)