Skip to content

Commit

Permalink
Fixed logger call
Browse files Browse the repository at this point in the history
  • Loading branch information
vasqued2 committed Nov 12, 2023
1 parent 52b5d5d commit d2ca110
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions custom_components/teamtracker/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ async def async_process_event(values, sensor_name, data, sport_path, league_id,
if not found_competitor:
date_range_message = f"{first_date.strftime('%Y-%m-%dT%H:%MZ')} and {last_date.strftime('%Y-%m-%dT%H:%MZ')}"
values["api_message"] = f"API_LIMIT hit. No competition found for '{team_id}' between {date_range_message}" if limit_hit else f"No competition scheduled for '{team_id}' between {date_range_message}"
_LOGGER.debug("%s: {'API_LIMIT hit' if limit_hit else 'No competitor information'} '{search_key}' returned by API", sensor_name, search_key)

_LOGGER.debug(
"%s: API_LIMIT hit (%s). No competitor information '%s' returned by API",
sensor_name,
API_LIMIT,
search_key,
)
return values


Expand Down

0 comments on commit d2ca110

Please sign in to comment.