mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-24 04:22:20 +00:00
battery -> battery3V. #45
This commit is contained in:
@@ -5,7 +5,7 @@ const clickLookup = {
|
||||
4: 'quadruple',
|
||||
}
|
||||
|
||||
const battery = {
|
||||
const battery3V = {
|
||||
min: 2500,
|
||||
max: 3000,
|
||||
}
|
||||
@@ -58,7 +58,7 @@ const parsers = [
|
||||
}
|
||||
|
||||
if (voltage) {
|
||||
return {battery: toPercentage(voltage, battery.min, battery.max)}
|
||||
return {battery: toPercentage(voltage, battery3V.min, battery3V.max)}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user