Files
MMM-HomeAssistantDisplay/node_helper.js
Clawd 5cdc4e2ce2
Some checks failed
Release Drafter / update_release_draft (push) Failing after 5s
Fix stale data after HA outage recovery
Two bugs caused the module to show outdated data permanently after HA
came back online:

1. refreshTimer was only checked at section level, but config sets it at
   the module config level. The setInterval never started, so there was
   no periodic re-render fallback when the WebSocket died.

2. _closeCircuit replayed queued templates but never reconnected the
   WebSocket. Without WS, no state_changed events fire, so the only
   render path was the (broken) refreshTimer.

Also fixes a race condition in _healthCheck where breaker.state was
briefly set to 'closed' before calling _openCircuit on failure. Now
uses 'half-open' state instead.
2026-03-01 08:59:15 +00:00

11 KiB