Skip to content

Commit

Permalink
fix: brightness out of sync
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNoim committed Dec 20, 2023
1 parent cfe61bf commit 5875398
Show file tree
Hide file tree
Showing 10 changed files with 415 additions and 86 deletions.
81 changes: 81 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions reactive_home/src/composeables/useLightMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export function useLightMapping({
if (
newEntityState.value &&
isDisabledBrightness &&
(newEntityState.brightness > expectedBrightnessValue + 1 ||
newEntityState.brightness < expectedBrightnessValue - 1) &&
(newEntityState.brightness > expectedBrightnessValue ||
newEntityState.brightness < expectedBrightnessValue) &&
/** Skip initial value, because it might be different. Let it sync first */
oldEntityState.value &&
!isDisabledBrightness.value
Expand Down
Loading

0 comments on commit 5875398

Please sign in to comment.