Skip to content

Commit

Permalink
resetBatteryRuntime()
Browse files Browse the repository at this point in the history
Added code so that when the sensor is first paired, the Battery Changed is set to the current date
  • Loading branch information
tmleafs authored Feb 7, 2018
1 parent 841be89 commit d172a63
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ def configure() {

def installed() {
state.battery = 0
resetBatteryRuntime()
state.button = "released"
checkIntervalEvent("installed");
}
Expand Down

0 comments on commit d172a63

Please sign in to comment.