Skip to content

Commit

Permalink
fix parsing local charge point id (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
benderl authored Oct 1, 2024
1 parent cc81b49 commit ed67a82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/modules/display_themes/cards/source/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
}
}
Expand Down

0 comments on commit ed67a82

Please sign in to comment.