Refactor!

This commit is contained in:
Koenkk committed 2018-11-16 20:23:11 +01:00
1 parent b0d3c2f964
commit dd2147109a
21 files changed
+813 -625

No files matched your search

-13
View File
@@ -1,13 +0,0 @@
// Verify that there are homeassistant mappings for every device.
const devices = require('zigbee-shepherd-converters').devices;
const homeassistant = require('../lib/homeassistant');
let failed = false;
devices.forEach((d) => {
if (!homeassistant.mapping[d.model]) {
console.error(`Missing homeassistant mapping for '${d.model}'`);
failed = true;
}
});
process.exit(failed ? 1 : 0);