Skip to content

fix(prices): elprisetjustnu ignores configured currency #1163

Description

@frahlg

elprisetjustnu always decodes SEK_per_kWh. Sourceful and ENTSO-E convert via FX. FromConfig still stamps Service.Currency from zone/config, so a non-SEK currency stores SEK numbers labeled as NOK/EUR.

Found on master 6eadec3f in go/internal/prices/prices.go.

What a fix needs

  • Convert elprisetjustnu the same way as Sourceful/ENTSO-E, or refuse the provider when currency is not SEK.
  • Test: Currency=EUR must not persist SEK magnitudes as EUR.

Open PR overlap: #1044 is stale harvest / Nord Pool fallback; #1051 is static tariff. Recheck those before editing prices.go.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions