v2.3.5 — SSE Broadcast Fix
Bug Fix
- Fix SSE null broadcasts during active playback (#108, #112). The add-on's Server-Sent Events (
/api/events) endpoint previously broadcastnull(blanking the kiosk overlay) when an unrelated media player in the house changed state during active playback. The state-change handler now recomputes the Now Showing payload from all Home Assistantmedia_playerstates after a 300ms debounce window, matching the same computation/api/stateserves. A newstateBroadcastermodule with full test coverage handles debouncing, error resilience, and graceful shutdown.
Maintenance
- Extracted state broadcast logic from
server.jsinto dedicatedstateBroadcaster.jsmodule with 3 tests: full-state recompute, debounce coalescing, and transient error resilience.