AlertTicker Card — v1.3.8
🩹 Patch Fix
Non-admin users flood HA log with Unauthorized websocket errors (#182)
Non-admin users accessing a dashboard with AlertTicker Card v1.3.7 experienced continuous error logging — thousands of paired entries within minutes:
Refusing to allow [user] to subscribe to event homeassistant_started
Error handling message: Unauthorized
Root cause: homeassistant_started is an admin-only event in Home Assistant. The subscription introduced in v1.3.6.4 (which re-establishes the weather forecast listener after an HA restart) always returned Unauthorized for non-admin accounts. The .catch() handler reset the setup flag on every failure, and because set hass() is called on every HA state change (every few seconds), the card retried the subscription indefinitely.
Fix: Added a hass.user?.is_admin === true guard before the subscription attempt. Non-admin users never attempt the subscription, so no errors are generated. Admin users retain the full behavior: automatic weather forecast re-subscription after an HA restart without a page reload.
Impact on non-admin users: The weather widget continues to work normally. After an HA restart, a browser refresh restores the forecast subscription — the same behavior that existed before v1.3.6.4.
No configuration changes needed.
📦 Update Instructions
- Download
alert-ticker-card.jsandalert-ticker-card-editor.js - Replace both files in your
www/folder (or the path you set in Resources) - Hard-reload the browser: Ctrl+Shift+R / Cmd+Shift+R
HACS users: update from the HACS panel — no manual steps needed.
Full changelog: CHANGELOG.md
☕ If this card saves you time, consider buying me a coffee — it keeps the updates coming!
