Fixed check if entity is of type "device" in deviceConfigure.js. (#2713)

The current statement (!entity.type === 'device') will always evaluate to false since it compares a boolean to a string.
This commit is contained in:
TilmanK authored and Koen Kanters committed 2020-01-11 15:50:00 +01:00
1 parent 77fc851236
commit 7a8bef3e60
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ class DeviceConfigure extends BaseExtension {
}
const entity = this.zigbee.resolveEntity(message);
if (!entity || !entity.type === 'device') {
if (!entity || entity.type !== 'device') {
logger.error(`Device '${message}' does not exist`);
return;
}