Skip to content

Commit

Permalink
Revert "fix hue_calibration"
Browse files Browse the repository at this point in the history
This reverts commit 993e6b8.
  • Loading branch information
asgothian committed Dec 29, 2024
1 parent 993e6b8 commit 1dbf732
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion lib/exposes.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ function createFromExposes(model, def) {
hue_correction: hue_correction_table
};
}
delete options.hue_calibration;
}
return {...options, transition: transitionTime};
},
Expand Down
6 changes: 1 addition & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,6 @@ class Zigbee extends utils.Adapter {
const preparedValue = (stateDesc.setter) ? stateDesc.setter(value, options) : value;
const preparedOptions = (stateDesc.setterOpt) ? stateDesc.setterOpt(value, options) : {};

if (preparedOptions.hasOwnProperty('hue_calibration')) {
delete preparedOptions.hue_calibration;
}

let syncStateList = [];
if (stateModel && stateModel.syncStates) {
stateModel.syncStates.forEach(syncFunct => {
Expand Down Expand Up @@ -786,7 +782,7 @@ class Zigbee extends utils.Adapter {

this.log.debug(`target: ${safeJsonStringify(target)}`);

const meta = {
const meta = {
endpoint_name: epName,
options: preparedOptions,
device: entity.device,
Expand Down

0 comments on commit 1dbf732

Please sign in to comment.