Skip to content

Commit 4278099

Browse files
committed
v3.4.2
## [3.4.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.4.2) (2024-12-21) ### What's Changed - Housekeeping and update dependencies **Full Changelog**: v3.4.1...v3.4.2
1 parent cb0369d commit 4278099

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
44

5-
## [3.4.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.4.2) (2024-11-XX)
5+
## [3.4.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v3.4.2) (2024-12-21)
66

77
### What's Changed
88
- Housekeeping and update dependencies

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "node-switchbot",
33
"type": "module",
4-
"version": "3.4.1",
4+
"version": "3.4.2",
55
"description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
66
"author": "OpenWonderLabs (https://github.com/OpenWonderLabs)",
77
"license": "MIT",
@@ -50,7 +50,7 @@
5050
},
5151
"readmeFilename": "README.md",
5252
"dependencies": {
53-
"@stoprocent/noble": "^1.16.0",
53+
"@stoprocent/noble": "^1.16.1",
5454
"async-mutex": "^0.5.0",
5555
"undici": "^7.2.0"
5656
},

src/device/woblindtilt.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { SwitchBotBLEModel, SwitchBotBLEModelFriendlyName, SwitchBotBLEModelName
1515
* @see https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/curtain.md
1616
*/
1717
export class WoBlindTilt extends SwitchbotDevice {
18-
private _reverse: boolean = false
18+
private reverse: boolean = false
1919

2020
/**
2121
* Parses the service data and manufacturer data for the WoBlindTilt device.
@@ -145,9 +145,9 @@ export class WoBlindTilt extends SwitchbotDevice {
145145
closing = !opening && Boolean(data[5] & 0b00000001)
146146
if (opening) {
147147
const flag = Boolean(data[5] & 0b00000001)
148-
up = flag ? this._reverse : !flag
148+
up = flag ? this.reverse : !flag
149149
} else {
150-
up = tilt < 50 ? this._reverse : tilt > 50
150+
up = tilt < 50 ? this.reverse : tilt > 50
151151
}
152152
}
153153

@@ -166,7 +166,7 @@ export class WoBlindTilt extends SwitchbotDevice {
166166
up: moving && up,
167167
down: moving && !up,
168168
},
169-
tilt: this._reverse ? 100 - tilt : tilt,
169+
tilt: this.reverse ? 100 - tilt : tilt,
170170
timers: data[7],
171171
}
172172
}

0 commit comments

Comments
 (0)