Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Nov 6, 2024
1 parent 2655285 commit 70c1996
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class HapClient extends EventEmitter {
this.instances[existingInstanceIndex].port = instance.port
this.instances[existingInstanceIndex].name = instance.name
this.debug(`[HapClient] Discovery :: [${this.instances[existingInstanceIndex].ipAddress}:${instance.port} `
+ `(${instance.username})] Instance Updated`)
+ `(${instance.username})] Instance Updated`)
this.emit('instance-discovered', instance)
}

Expand Down Expand Up @@ -243,8 +243,8 @@ export class HapClient extends EventEmitter {

public async monitorCharacteristics(services?: ServiceType[]) {
// If `services` is not provided, retrieve all services
services = services ?? await this.getAllServices();
return new HapMonitor(this.logger, this.debug.bind(this), this.pin, services);
services = services ?? await this.getAllServices()
return new HapMonitor(this.logger, this.debug.bind(this), this.pin, services)
}

public async getAllServices() {
Expand Down Expand Up @@ -452,10 +452,10 @@ export class HapClient extends EventEmitter {
} catch (e: any) {
if (this.logger) {
this.logger.error(`[HapClient] [${service.instance.ipAddress}:${service.instance.port} (${service.instance.username})] `
+ `Failed to set value for ${service.serviceName}.`)
+ `Failed to set value for ${service.serviceName}.`)
if ([401, 470].includes(e.response?.status)) {
this.logger.warn(`[HapClient] [${service.instance.ipAddress}:${service.instance.port} (${service.instance.username})] `
+ `Make sure Homebridge pin for this instance is set to ${this.pin}.`)
+ `Make sure Homebridge pin for this instance is set to ${this.pin}.`)
throw new Error(`Failed to control accessory. Make sure the Homebridge pin for ${service.instance.ipAddress}:${service.instance.port} `
+ `is set to ${this.pin}.`)
} else {
Expand Down

0 comments on commit 70c1996

Please sign in to comment.