From e7138f0a28ad0a9c8b6bda40980ce116491cc4f8 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Tue, 16 Nov 2021 18:56:36 +0100 Subject: [PATCH] Fix manufacturerName removed by updateall.js. https://github.com/Koenkk/zigbee-OTA/issues/62 --- scripts/add.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/add.js b/scripts/add.js index b7e0277..2e1c8ab 100644 --- a/scripts/add.js +++ b/scripts/add.js @@ -99,7 +99,7 @@ const main = async () => { if (index !== -1) { console.log(`Updated existing entry (${JSON.stringify(entry)})`); - indexJSON[index] = entry; + indexJSON[index] = {...indexJSON[index], ...entry}; if (entry.path && entry.path !== destination) { try {