Skip to content

Commit

Permalink
Update matterbridgeDevice.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Apr 11, 2024
1 parent 0c93c80 commit 602fb19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/matterbridgeDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1319,13 +1319,13 @@ export class MatterbridgeDevice extends extendPublicHandlerMethods<typeof Device
* This method adds a cluster server for a door lock cluster with default settings.
*
*/
getDefaultDoorLockClusterServer() {
getDefaultDoorLockClusterServer(lockState = DoorLock.LockState.Locked, lockType = DoorLock.LockType.Deadbolt) {
return ClusterServer(
DoorLockCluster,
{
operatingMode: DoorLock.OperatingMode.Normal,
lockState: DoorLock.LockState.Locked,
lockType: DoorLock.LockType.Deadbolt,
lockState,
lockType,
actuatorEnabled: false,
supportedOperatingModes: { normal: true, vacation: false, privacy: false, noRemoteLockUnlock: false, passage: false },
},
Expand Down Expand Up @@ -1355,8 +1355,8 @@ export class MatterbridgeDevice extends extendPublicHandlerMethods<typeof Device
* This method adds a cluster server for a door lock cluster with default settings.
*
*/
createDefaultDoorLockClusterServer() {
this.addClusterServer(this.getDefaultDoorLockClusterServer());
createDefaultDoorLockClusterServer(lockState = DoorLock.LockState.Locked, lockType = DoorLock.LockType.Deadbolt) {
this.addClusterServer(this.getDefaultDoorLockClusterServer(lockState, lockType));
}

/**
Expand Down

0 comments on commit 602fb19

Please sign in to comment.