From f96e63d90536162b319deb5cdcf6a9f89db53435 Mon Sep 17 00:00:00 2001 From: Lutz Bender Date: Tue, 1 Oct 2024 13:18:45 +0200 Subject: [PATCH] fix parsing local charge point id --- 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); + } }); } }