Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck authored Aug 8, 2023
1 parent eb952fe commit 8ed239d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ class Zigbee extends utils.Adapter {
this.publishToState(devId, model, {linkquality: message.linkquality});
if (isBattKey) {
this.publishToState(devId, model, {voltage: _voltage});
const battProz = zigbeeHerdsmanConvertersUtils.batteryVoltageToPercentage(voltage,entity.mapped.meta.battery.voltageToPercentage);
const battProz = zigbeeHerdsmanConvertersUtils.batteryVoltageToPercentage(_voltage,entity.mapped.meta.battery.voltageToPercentage);
this.publishToState(devId, model, {battery: battProz});
}
if (isMessure) {
Expand Down

0 comments on commit 8ed239d

Please sign in to comment.