Revert "Xiaomi/Aqara OTA-firmware (#28)" (#34)

This reverts commit 293b99e011.
This commit is contained in:
Ilya Kirov
2021-03-14 18:55:42 +03:00
committed by GitHub
parent 6e5d393976
commit 0014500fc3
41 changed files with 2 additions and 118 deletions

View File

@@ -19,7 +19,6 @@ const manufacturerNameLookup = {
4151: 'Eurotronic',
4678: 'Danfoss',
4687: 'Gledopto',
4447: 'Xiaomi',
};
const main = async () => {
@@ -99,14 +98,7 @@ const main = async () => {
indexJSON[index] = entry;
if (entry.path && entry.path !== destination) {
try {
fs.unlinkSync(path.resolve(entry.path));
} catch (err) {
if (err && err.code != 'ENOENT') {
console.error("Error in call to fs.unlink", err);
throw err;
}
}
fs.unlinkSync(entry.path);
}
} else {
console.log(`Added new entry (${JSON.stringify(entry)})`);