Skip to content

Commit

Permalink
fix: Fixed LoraTap SC400ZB-EU calibration time reading (#8321)
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroQ authored Nov 17, 2024
1 parent f263bc0 commit 761650e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converters/fromZigbee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2213,7 +2213,7 @@ const converters1 = {
if (meta.device.manufacturerName === '_TZ3000_cet6ch1r') {
const endpoint = msg.endpoint.ID;
const calibrationLookup: KeyValueAny = {1: 'up', 2: 'down'};
result[postfixWithEndpointName(`calibration_time_'${calibrationLookup[endpoint]}'`, msg, model, meta)] = value;
result[postfixWithEndpointName(`calibration_time_${calibrationLookup[endpoint]}`, msg, model, meta)] = value;
} else {
result[postfixWithEndpointName('calibration_time', msg, model, meta)] = value;
}
Expand Down

0 comments on commit 761650e

Please sign in to comment.