Skip to content

Commit

Permalink
DoorAccess support -
Browse files Browse the repository at this point in the history
  • Loading branch information
steffjenl committed Nov 23, 2024
1 parent 8642896 commit 57f4108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class UniFiProtect extends Homey.App {
return false;
}

onParseWebsocketMessage(camera, payload) {
onParseWebsocketMessage(payload) {
if (payload.hasOwnProperty('type')) {

if (payload.type === 'doorAccess') {
Expand Down
2 changes: 1 addition & 1 deletion library/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class ProtectWebSocket extends BaseClass {
&& updatePacket.payload.type === 'doorAccess'
) {
// application event
this.homey.app.onParseWebsocketMessage(deviceDoorbell, payload);
this.homey.app.onParseWebsocketMessage(payload);
} else if (
updatePacket.action.modelKey === 'event'
&& typeof updatePacket.action.recordId !== 'undefined'
Expand Down

0 comments on commit 57f4108

Please sign in to comment.