Update Football display. Add End of Period text and long down distance for larger screens (#101)

Co-authored-by: Alex Resnick <adr8282@gmail.com>
This commit is contained in:
Alex Resnick
2025-10-05 14:17:49 -05:00
committed by GitHub
parent f3d02e07ea
commit 9ba76b56d7
3 changed files with 11 additions and 7 deletions

View File

@@ -464,6 +464,7 @@ class SportsCore(ABC):
"is_upcoming": (status["type"]["state"] == "pre" or
status["type"]["name"].lower() in ['scheduled', 'pre-game', 'status_scheduled']),
"is_halftime": status["type"]["state"] == "halftime" or status["type"]["name"] == "STATUS_HALFTIME", # Added halftime check
"is_period_break": status["type"]["name"] == "STATUS_END_PERIOD", # Added Period Break check
"home_abbr": home_abbr,
"home_id": home_team["id"],
"home_score": home_team.get("score", "0"),