From 7dd4007cfa5d4496861a728a95aaaf0c0eb3e8e9 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sat, 29 Aug 2026 13:10:43 +0200 Subject: [PATCH] Add BYN, UAH, RUB and KZT to currency list (#33259) --- assets/js/mixins/formatter.ts | 5 +++++ assets/js/types/evcc.ts | 4 ++++ server/mcp/openapi.json | 6 +++++- server/openapi.state.yaml | 4 ++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/assets/js/mixins/formatter.ts b/assets/js/mixins/formatter.ts index 47c05d1b5..4b0b3a9d8 100644 --- a/assets/js/mixins/formatter.ts +++ b/assets/js/mixins/formatter.ts @@ -75,6 +75,10 @@ const CURRENCY_SYMBOLS: Record = { TRY: "₺", MYR: "RM", THB: "฿", + BYN: "Br", + UAH: "₴", + RUB: "₽", + KZT: "₸", }; // list of currencies where energy price should be displayed in subunits (factor 100) @@ -94,6 +98,7 @@ const ENERGY_PRICE_IN_SUBUNIT: Partial> = { SEK: "öre", // Swedish öre ZAR: "c", // South African cent TRY: "krş", // Türkiye kuruş + BYN: "к.", // Belarusian kapeyka }; export enum POWER_UNIT { diff --git a/assets/js/types/evcc.ts b/assets/js/types/evcc.ts index 22f697402..659042f95 100644 --- a/assets/js/types/evcc.ts +++ b/assets/js/types/evcc.ts @@ -816,6 +816,10 @@ export enum CURRENCY { TRY = "TRY", MYR = "MYR", THB = "THB", + BYN = "BYN", + UAH = "UAH", + RUB = "RUB", + KZT = "KZT", } export enum ICON_SIZE { diff --git a/server/mcp/openapi.json b/server/mcp/openapi.json index 537003276..02cf646e6 100644 --- a/server/mcp/openapi.json +++ b/server/mcp/openapi.json @@ -3648,7 +3648,11 @@ "ZAR", "TRY", "MYR", - "THB" + "THB", + "BYN", + "UAH", + "RUB", + "KZT" ] }, "FatalError": { diff --git a/server/openapi.state.yaml b/server/openapi.state.yaml index 664858fc7..ada39bc1c 100644 --- a/server/openapi.state.yaml +++ b/server/openapi.state.yaml @@ -510,6 +510,10 @@ components: - TRY - MYR - THB + - BYN + - UAH + - RUB + - KZT DeviceColorEntry: description: Color assigned to a device for consistent UI display. type: object