From 4e746a93e98027a7b02721a16a8729958825b8d1 Mon Sep 17 00:00:00 2001 From: Shaquu Date: Sun, 23 Jun 2024 22:04:39 +0200 Subject: [PATCH] Fixed linting and test issues --- src/lib/HAPServer.spec.ts | 1 - src/lib/controller/AdaptiveLightingController.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/HAPServer.spec.ts b/src/lib/HAPServer.spec.ts index 641edd3c3..3d30ec300 100644 --- a/src/lib/HAPServer.spec.ts +++ b/src/lib/HAPServer.spec.ts @@ -618,7 +618,6 @@ describe(IsKnownHAPStatusError, () => { .filter(error => error !== 0); // filter out HAPStatus.SUCCESS for (const error of errorValues) { - // @ts-expect-error: type mismatch const result = IsKnownHAPStatusError(error); if (!result) { fail("IsKnownHAPStatusError does not return true for error code " + error); diff --git a/src/lib/controller/AdaptiveLightingController.ts b/src/lib/controller/AdaptiveLightingController.ts index 7231ec447..ea94375b4 100644 --- a/src/lib/controller/AdaptiveLightingController.ts +++ b/src/lib/controller/AdaptiveLightingController.ts @@ -660,7 +660,7 @@ export class AdaptiveLightingController brightnessAdjustmentRange: this.activeTransition.brightnessAdjustmentRange, updateInterval: this.activeTransition.updateInterval, notifyIntervalThreshold: this.activeTransition.notifyIntervalThreshold, - } + }; this.emit(AdaptiveLightingControllerEvents.UPDATE, update); } else {