Skip to content

v0.3.0-beta.1 — Frankfurter API migration

Pre-release
Pre-release

Choose a tag to compare

@derspe derspe released this 29 Apr 21:17

Migration to api.frankfurter.dev

The currency rate API host api.frankfurter.app was deprecated and now returns a permanent 301 to api.frankfurter.dev/v1. This pre-release switches the card directly to the new endpoint so every rate refresh is a single 200 instead of 301 → 200.

The response schema is identical ({base, rates: {USD, GBP, ...}}), so no parser changes were needed. The new /v2/ namespace uses a different array-based schema and is not a drop-in replacement — sticking with /v1 keeps this a one-line change.

Changes

  • Switch currency rate fetch to https://api.frankfurter.dev/v1/latest?base=EUR (f914ca7)
  • Rebuild bundled card JS
  • Bump manifest version 0.2.60.3.0
  • Add CLAUDE.md to .gitignore (local AI context, not part of the project)

How to test

Install via HACS with the Show beta versions option enabled, or copy custom_components/easy_stock/www/easy-stock-card.js from this release into your HA config. Hard-refresh your browser (no HA restart needed). In DevTools → Network, the next rate fetch should hit api.frankfurter.dev/v1/latest?base=EUR directly with a 200 and no redirect.