Skip to content

Commit

Permalink
fixes for hap-nodejs 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Jul 13, 2024
1 parent 6e38d68 commit 122292b
Show file tree
Hide file tree
Showing 4 changed files with 557 additions and 202 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr

## BETA

### Changed

- Fixed for `hap-nodejs` v1.0.0
- Updated dependencies
- Bump `node` recommended versions to v18.20.4 or v20.15.1

## 6.1.1 (2023-08-28)

⚠️ Note this will be the last version of the plugin to support Node 16.
Expand Down
12 changes: 6 additions & 6 deletions lib/utils/custom-chars.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ export default class {
this.MaxSpeed = function MaxSpeed() {
self.hapChar.call(this, 'Max Speed', self.uuids.maxSpeed);
this.setProps({
format: self.hapChar.Formats.BOOL,
perms: [self.hapChar.Perms.READ, self.hapChar.Perms.WRITE, self.hapChar.Perms.NOTIFY],
format: api.hap.Formats.BOOL,
perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
});
this.value = this.getDefaultValue();
};

this.PredefinedArea = function PredefinedArea() {
self.hapChar.call(this, 'Predefined Area', self.uuids.predefinedArea);
this.setProps({
format: self.hapChar.Formats.UINT8,
perms: [self.hapChar.Perms.READ, self.hapChar.Perms.WRITE, self.hapChar.Perms.NOTIFY],
format: api.hap.Formats.UINT8,
perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
minValue: 0,
maxValue: 15,
minStep: 1,
Expand All @@ -34,8 +34,8 @@ export default class {
this.TrueDetect = function TrueDetect() {
self.hapChar.call(this, 'TrueDetect', self.uuids.trueDetect);
this.setProps({
format: self.hapChar.Formats.BOOL,
perms: [self.hapChar.Perms.READ, self.hapChar.Perms.WRITE, self.hapChar.Perms.NOTIFY],
format: api.hap.Formats.BOOL,
perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
});
this.value = this.getDefaultValue();
};
Expand Down
Loading

0 comments on commit 122292b

Please sign in to comment.