From 70c1996165e3ae9d24ee6b3cf2498ff0c33cdffb Mon Sep 17 00:00:00 2001 From: Northern Man <19808920+NorthernMan54@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:15:32 -0500 Subject: [PATCH] Lint --- src/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 75ba39e..2e93e3a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) } @@ -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() { @@ -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 {