From ed67a82d4aa0d17eb384ea100f91eb0d72d69c55 Mon Sep 17 00:00:00 2001 From: benderl Date: Tue, 1 Oct 2024 13:20:58 +0200 Subject: [PATCH] fix parsing local charge point id (#1911) --- packages/modules/display_themes/cards/source/src/App.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/modules/display_themes/cards/source/src/App.vue b/packages/modules/display_themes/cards/source/src/App.vue index 251f0544ee..b0cc084183 100644 --- a/packages/modules/display_themes/cards/source/src/App.vue +++ b/packages/modules/display_themes/cards/source/src/App.vue @@ -90,7 +90,11 @@ export default { let data = JSON.parse(params.get("data")); Object.entries(data).forEach(([key, value]) => { console.log("updateSetting", key, value); - this.mqttStore.updateSetting(key, value); + if (key.startsWith("parentChargePoint")) { + this.mqttStore.updateSetting(key, parseInt(value)); + } else { + this.mqttStore.updateSetting(key, value); + } }); } }