mirror of
https://github.com/mtan93/homebridge.git
synced 2026-05-12 14:26:05 +01:00
MyQ: check MyQDeviceTypeName against 'VGDO' as well
This commit is contained in:
@@ -89,7 +89,7 @@ LiftMasterAccessory.prototype = {
|
|||||||
for (var i=0; i<devices.length; i++) {
|
for (var i=0; i<devices.length; i++) {
|
||||||
var device = devices[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 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) {
|
if (!that.requiredDeviceId) {
|
||||||
@@ -303,4 +303,4 @@ LiftMasterAccessory.prototype = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.accessory = LiftMasterAccessory;
|
module.exports.accessory = LiftMasterAccessory;
|
||||||
|
|||||||
Reference in New Issue
Block a user