Skip to content

homegame: skip the tile when no game is scheduled - #978

Merged
tavdog merged 2 commits into
tronbyt:mainfrom
tscott98:homegame
Nov 30, 2026
Merged

tavdog merged 2 commits into
tronbyt:mainfrom
tscott98:homegame

Conversation

@tscott98

Copy link
Copy Markdown
Contributor

What changed

When ESPN answers but the chosen team has nothing on the schedule, main now returns [] instead of rendering the amber NO GAME / Nothing scheduled notice. The app drops out of the rotation for the off-season and reappears by itself once a game is scheduled.

The app already returned [] when ESPN couldn't be reached, so both "nothing to show" cases now behave the same way.

  • homegame.star: the no-game path returns []; removed the now-unused render_notice helper; updated the scoreboard fallback's docstring.
  • README.md: the "No game" state now describes the skipped tile.

Why

An off-season "nothing scheduled" screen takes up a rotation slot for months without telling the viewer anything useful.

Testing

Check Result
pixlet format / lint / check (v0.55.1) Pass
Texas A&M (245), no nextEvent on ESPN today Renders nothing (tile skipped)
Texas (251), game on Dec 5 Normal screen: TEX vs UGA, AWAY band, Dec 5 3:00PM

Not covered

  • Not yet checked on a physical Tronbyt.
  • homegame.webp is unchanged. The default team has no game right now, so a fresh render would be empty.

🤖 Generated with Claude Code

Return [] instead of rendering the "NO GAME" notice when ESPN answers but
the team has nothing on the schedule, so the app drops out of the rotation
during the off-season and comes back once a game is scheduled. Removes the
now-unused render_notice helper and updates the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tscott98
tscott98 requested a review from tavdog as a code owner November 29, 2026 22:35
@tavdog
tavdog merged commit e438781 into tronbyt:main Nov 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants