Skip to content

Commit

Permalink
Support color sync
Browse files Browse the repository at this point in the history
This allows the color sync functionality to work if it's enabled in the
device settings.
  • Loading branch information
AndreKR committed Mar 18, 2023
1 parent 3140b52 commit 559ef61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devices/lidl.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ const tzLocal = {
}
}

// If we're in white mode, calculate a matching display color for the set color temperature. This also kind
// of works in the other direction.
Object.assign(newState, libColor.syncColorState(newState, meta.state, entity, meta.options, meta.logger));

return {state: newState};
},
convertGet: async (entity, key, meta) => {
Expand Down

0 comments on commit 559ef61

Please sign in to comment.