Skip to content

Commit a079ee6

Browse files
authored
v0.14.13 Release Candidate (#254)
- Enable Service Calls from Blueprints
1 parent 44e3819 commit a079ee6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

custom_components/teamtracker/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@ async def get_entry_id_from_entity_id(hass: HomeAssistant, entity_id: str):
7676
async def async_call_api_service(call):
7777
"""Handle the service action call."""
7878

79-
sport_path = call.data.get(CONF_SPORT_PATH, "football")
80-
league_path = call.data.get(CONF_LEAGUE_PATH, "nfl")
81-
team_id = call.data.get(CONF_TEAM_ID, "cle")
79+
sport_path = str(call.data.get(CONF_SPORT_PATH, "football"))
80+
league_path = str(call.data.get(CONF_LEAGUE_PATH, "nfl"))
81+
team_id = str(call.data.get(CONF_TEAM_ID, "cle"))
8282
conference_id = call.data.get(CONF_CONFERENCE_ID, "")
83+
conference_id = "" if conference_id is None else str(conference_id)
8384
entity_ids = call.data.get("entity_id", "none")
8485

8586
for entity_id in entity_ids:

custom_components/teamtracker/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195

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

0 commit comments

Comments
 (0)