MyQ: check MyQDeviceTypeName against 'VGDO' as well

This commit is contained in:
Francesco Carucci
2015-10-23 23:56:54 +00:00
parent e2157aed9c
commit 1f7db5e661

View File

@@ -89,7 +89,7 @@ LiftMasterAccessory.prototype = {
for (var i=0; i<devices.length; i++) {
var device = devices[i];
if (device["MyQDeviceTypeName"] == "GarageDoorOpener") {
if (device["MyQDeviceTypeName"] == "GarageDoorOpener" || device["MyQDeviceTypeName"] == "VGDO") {
// If we haven't explicity specified a door ID, we'll loop to make sure we don't have multiple openers, which is confusing
if (!that.requiredDeviceId) {
@@ -303,4 +303,4 @@ LiftMasterAccessory.prototype = {
}
};
module.exports.accessory = LiftMasterAccessory;
module.exports.accessory = LiftMasterAccessory;