mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-30 22:04:09 +01:00
Fix LiftMaster shim
For those of us without multiple garage doors...
This commit is contained in:
@@ -92,7 +92,7 @@ LiftMasterAccessory.prototype = {
|
|||||||
if (device["MyQDeviceTypeName"] == "GarageDoorOpener") {
|
if (device["MyQDeviceTypeName"] == "GarageDoorOpener") {
|
||||||
|
|
||||||
// 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 == undefined) {
|
if (!that.requiredDeviceId) {
|
||||||
var thisDeviceId = device.MyQDeviceId;
|
var thisDeviceId = device.MyQDeviceId;
|
||||||
var thisDoorName = "Unknown";
|
var thisDoorName = "Unknown";
|
||||||
for (var j = 0; j < device.Attributes.length; j ++) {
|
for (var j = 0; j < device.Attributes.length; j ++) {
|
||||||
@@ -103,6 +103,7 @@ LiftMasterAccessory.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
foundDoors.push(thisDeviceId + " - " + thisDoorName);
|
foundDoors.push(thisDeviceId + " - " + thisDoorName);
|
||||||
|
that.deviceId = thisDeviceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We specified a door ID, sanity check to make sure it's the one we expected
|
// We specified a door ID, sanity check to make sure it's the one we expected
|
||||||
|
|||||||
Reference in New Issue
Block a user