10000 AdaptiveLightingController fix & improvement by Shaquu · Pull Request #1038 · homebridge/HAP-NodeJS · GitHub
[go: up one dir, main page]

Skip to content

AdaptiveLightingController fix & improvement #1038

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

Merged
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
Next Next commit
Fixed linting and test issues
  • Loading branch information
Shaquu committed Jun 23, 2024
commit 4e746a93e98027a7b02721a16a8729958825b8d1
1 change: 0 additions & 1 deletion src/lib/HAPServer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/controller/AdaptiveLightingController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expa 4262 nd Down
Loading
0