Skip to content

Commit

Permalink
Merge pull request #19 from zacs/dev
Browse files Browse the repository at this point in the history
merge dev into master
  • Loading branch information
zacs authored Aug 15, 2022
2 parents 58a5b4e + 9ff527a commit 464b62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/nfl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ async def async_get_state(config) -> dict:
values["opponent_homeaway"] = event["competitions"][0]["competitors"][oppo_index]["homeAway"]
values["opponent_logo"] = event["competitions"][0]["competitors"][oppo_index]["team"]["logo"]
try:
values["opponent_colors"] = [''.join(('#',event["competitions"][0]["competitors"][team_index]["team"]["color"])),
''.join(('#',event["competitions"][0]["competitors"][team_index]["team"]["alternateColor"]))]
values["opponent_colors"] = [''.join(('#',event["competitions"][0]["competitors"][oppo_index]["team"]["color"])),
''.join(('#',event["competitions"][0]["competitors"][oppo_index]["team"]["alternateColor"]))]
except:
if team_id == 'AFC':
values["opponent_colors"] = ['#013369','#013369']
Expand Down

0 comments on commit 464b62e

Please sign in to comment.