Skip to content

v1.3.8

Latest

Choose a tag to compare

@djdevil djdevil released this 12 Jul 14:38
d4b9271

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

  1. Download alert-ticker-card.js and alert-ticker-card-editor.js
  2. Replace both files in your www/ folder (or the path you set in Resources)
  3. 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!

Buy Me A Coffee