We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents58a5b4e +9ff527a commit464b62eCopy full SHA for 464b62e
custom_components/nfl/__init__.py
@@ -247,8 +247,8 @@ async def async_get_state(config) -> dict:
247
values["opponent_homeaway"]=event["competitions"][0]["competitors"][oppo_index]["homeAway"]
248
values["opponent_logo"]=event["competitions"][0]["competitors"][oppo_index]["team"]["logo"]
249
try:
250
-values["opponent_colors"]= [''.join(('#',event["competitions"][0]["competitors"][team_index]["team"]["color"])),
251
-''.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"]))]
252
except:
253
ifteam_id=='AFC':
254
values["opponent_colors"]= ['#013369','#013369']