Skip to content

Commit

Permalink
Merge pull request #161 from jonferreira/master
Browse files Browse the repository at this point in the history
Update alexa-remote-ext.js
  • Loading branch information
bbindreiter authored Nov 9, 2023
2 parents 303301f + aa5d695 commit 69b4835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/alexa-remote-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class AlexaRemoteExt extends AlexaRemote {
}
async initDevicesExt() {
return this.getDevicesPromise().then(response => {
this.deviceByIdExt = new Map(response.devices.map(o => [o.serialNumber, o]));
this.deviceByIdExt = new Map(response.devices?.map(o => [o.serialNumber, o]));
this._deviceChange();
});
}
Expand Down Expand Up @@ -1162,4 +1162,4 @@ class AlexaRemoteExt extends AlexaRemote {
}
}

module.exports = AlexaRemoteExt;
module.exports = AlexaRemoteExt;

0 comments on commit 69b4835

Please sign in to comment.