Skip to content

Commit

Permalink
add logging for teams that cant be found in the API
Browse files Browse the repository at this point in the history
  • Loading branch information
zacs committed Oct 13, 2021
1 parent c7e5f20 commit 0f246f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/nfl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ async def async_get_state(config) -> dict:
values["state"] = 'BYE'
values["last_update"] = arrow.now().format(arrow.FORMAT_W3C)
if found_bye == False:
_LOGGER.debug("Team not found in active games or bye week list. Have you missed the playoffs?")
values["team_abbr"] = None
values["team_name"] = None
values["team_logo"] = None
Expand Down

0 comments on commit 0f246f7

Please sign in to comment.