Skip to content

Commit

Permalink
improve deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Jan 21, 2024
1 parent f26557c commit a2f6e29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,12 @@ class Toyota extends utils.Adapter {
return;
}
const data = res.data.payload;
delete data.trips;
for (const trip of data.trips) {
delete trip.route;
}
for (const summary of data.summary) {
delete summary.histograms;
}
this.json2iob.parse(vin + '.' + element.path, data, {
forceIndex: true,
channelName: element.desc,
Expand Down

0 comments on commit a2f6e29

Please sign in to comment.