Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Jan 15, 2025
1 parent d36afe9 commit 16a3200
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,10 @@ async function initDeviceObjects(deviceId, data, objs, values, preserveFields) {
}
delete obj.encoding;
}
adapter.log.debug(`${deviceId}.${id}: ${obj.type} ${JSON.stringify(native)}`);
if (!valueHandler[`${deviceId}.${id}`] && obj.type === 'number') {
valueHandler[`${deviceId}.${id}`] = (value) => handleValueChangeCorrections(value, native);
adapter.log.debug(`${deviceId}.${id}: ${obj.type} ${JSON.stringify(native)}`);
values[id] = valueHandler[`${deviceId}.${id}`](values[id]);
}
objectHelper.setOrUpdateObject(`${deviceId}.${id}`, {
Expand Down

0 comments on commit 16a3200

Please sign in to comment.