Skip to content

Commit 094a961

Browse files
remove error log for light if no response
1 parent 3ee0b38 commit 094a961

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"type": "pwa-node",
1515
"args": [
1616
"--user-storage-path",
17-
"${workspaceFolder}/homebridge-test-config",
17+
"~/homebridge-test-config",
1818
"--debug"
1919
]
2020
}

src/accessories/light-accessory.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,15 +326,13 @@ export class LightAccessory extends HubspaceAccessory{
326326
private throwErrorIfNullOrUndefined(value: any, message: string): void {
327327
// If the value is not defined then show 'Not Responding'
328328
if (isNullOrUndefined(value)) {
329-
this.log.error(`${this.device.name}: ${message}`);
330329
throw new this.platform.api.hap.HapStatusError(this.platform.api.hap.HAPStatus.SERVICE_COMMUNICATION_FAILURE);
331330
}
332331
}
333332

334333
private throwErrorIfNullOrUndefinedInt(value: any, message: string): void {
335334
// If the value is not defined then show 'Not Responding'
336335
if (isNullOrUndefined(value) || value === -1) {
337-
this.log.error(`${this.device.name}: ${message}`);
338336
throw new this.platform.api.hap.HapStatusError(this.platform.api.hap.HAPStatus.SERVICE_COMMUNICATION_FAILURE);
339337
}
340338
}

0 commit comments

Comments
 (0)