Skip to content

v2.7.2

Choose a tag to compare

@sxdjt sxdjt released this 11 Mar 06:04

Bug Fix

Fixed: getStubConfig() placeholder coordinates triggering real NWS API calls and action scripts

When using HA's card picker to browse or preview the NWS Alert Card, the card was initialized with stub configuration default values. This caused the preview card to:

  • Resolve those coordinates to the example zone via the NWS Points API
  • Fetch live alerts for that zone
  • Detect severity levels and fire configured action scripts (e.g., script.weather_alert_extreme)

The stub config now uses only the minimum required fields (nws_zone, email, title), preventing any live API calls or action triggers during card preview.

Changes

  • getStubConfig() simplified to minimal viable config using nws_zone instead of placeholder coordinates

See CHANGELOG.md for full history.