Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
- Bug fix
- Patch version bump for publishing on npmjs
  • Loading branch information
denisgabriel5 committed Jun 17, 2024
1 parent 2131f3e commit 4cf372e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Intercom",
"name": "homebridge-intercom",
"version": "1.1.0",
"version": "1.1.1",
"description": "Manage your old intercom via Homebridge. \nIt consists of two accessories: a doorbell (for checking and notifyng if the intercom rings) and a lock mechanism (for opening the intercom door).",
"license": "Apache-2.0",
"homepage": "https://github.com/denisgabriel5/homebridge-intercom/blob/main/README.md",
Expand Down
4 changes: 2 additions & 2 deletions src/shellyUni/shellyUniLockMechanism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ export class ShellyUniLockMechanism {
this.service.updateCharacteristic(this.Characteristic.LockTargetState, this.Characteristic.LockCurrentState.UNSECURED);
this.service.updateCharacteristic(this.Characteristic.LockCurrentState, this.Characteristic.LockCurrentState.UNSECURED);
this.parent.platform.log.debug('Intercom opened');
}, this.parent.config.buttonsTimeout!);
}, this.parent.config.buttonsTimeout! * 1000);

// in the end mark the intercom as closed/locked/secured
setTimeout(() => {
this.service.updateCharacteristic(this.Characteristic.LockTargetState, this.Characteristic.LockCurrentState.SECURED);
this.service.updateCharacteristic(this.Characteristic.LockCurrentState, this.Characteristic.LockCurrentState.SECURED);
this.parent.platform.log.debug('Intercom closed');
}, this.parent.config.timeout!);
}, this.parent.config.timeout! * 1000);
}
}

0 comments on commit 4cf372e

Please sign in to comment.