8000 Esm 2.1.0 - Change tracking by NorthernMan54 · Pull Request #12 · homebridge/hap-client · GitHub
[go: up one dir, main page]

Skip to content

Esm 2.1.0 - Change tracking #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: latest
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updated dependencies
  • Loading branch information
bwp91 committed Nov 22, 2024
commit f6caae964d80cbe9de2c059c0ba6d73b4412a1e4
2 changes: 1 addition & 1 deletion src/eventedHttpClient/httpParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ httpMessageParser._isBuffer = function (item: any) {
return ((httpMessageParser._isNodeBufferSupported()
&& typeof globalThis === 'object'
&& globalThis.Buffer.isBuffer(item))
|| (item instanceof Object
|| (item instanceof Object
&& item._isBuffer))
}

Expand Down
4 changes: 2 additions & 2 deletions src/monitor.ts
536A
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class HapMonitor extends EventEmitter {
if (message.statusCode === 401) {
if (this.logger) {
this.debug(`[HapClient] [${instance.ipAddress}:${instance.port} (${instance.username})] `
+ `${message.statusCode} ${message.statusMessage} - make sure Homebridge pin for this instance is set to ${this.pin}.`)
+ `${message.statusCode} ${message.statusMessage} - make sure Homebridge pin for this instance is set to ${this.pin}.`)
}
}

Expand All @@ -51,7 +51,7 @@ export class HapMonitor extends EventEmitter {
const body = JSON.parse(message.body)
if (body.characteristics && body.characteristics.length) {
this.debug(`[HapClient] [${instance.ipAddress}:${instance.port} (${instance.username})] `
+ `Got Event: ${JSON.stringify(body.characteristics)}`)
+ `Got Event: ${JSON.stringify(body.characteristics)}`)

const response = body.characteristics.map((c: CharacteristicType) => { // eslint-disable-line array-callback-return
// find the matching service for each characteristic
Expand Down
Loading
0