Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Dec 22, 2024
1 parent ab627b5 commit 913903a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 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
Expand Up @@ -80,7 +80,7 @@
"async-mqtt": "^2.6.3",
"fakegato-history": "^0.6.5",
"homebridge-lib": "^7.1.1",
"node-switchbot": "^3.4.3-beta.4",
"node-switchbot": "^3.4.3-beta.5",
"rxjs": "^7.8.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2607,7 +2607,7 @@ export class SwitchBotPlatform implements DynamicPlatformPlugin {
const delayBetweenRetries = deviceDelayBetweenRetries
while (retryCount < maxRetries) {
try {
const { response, statusCode } = await this.switchBotAPI.getDeviceStatus(deviceId)
const { response, statusCode } = await this.switchBotAPI.getDeviceStatus(deviceId, this.config.credentials?.token, this.config.credentials?.secret)
this.debugLog(`response: ${JSON.stringify(response)}`)
return { response, statusCode }
} catch (error: any) {
Expand Down

0 comments on commit 913903a

Please sign in to comment.