homebridge-openwrt-control 0.0.2-beta.33 → 0.0.2-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -92,6 +92,8 @@ class OpenWrtPlatform {
|
|
|
92
92
|
// create device clases
|
|
93
93
|
const DeviceClasses = { accessPoint: AccessPoint, switch: Switch };
|
|
94
94
|
const DeviceClass = DeviceClasses[device];
|
|
95
|
+
|
|
96
|
+
if (!DeviceClass) return;
|
|
95
97
|
const type = new DeviceClass(api, deviceConfig, openWrt, openWrtInfo)
|
|
96
98
|
.on('devInfo', msg => logLevel.devInfo && log.info(msg))
|
|
97
99
|
.on('success', msg => logLevel.success && log.success(`Device: ${host} ${name}, ${msg}`))
|
package/package.json
CHANGED