diff --git a/Cargo.lock b/Cargo.lock index 0e16260..ec6430a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2256,7 +2256,7 @@ dependencies = [ [[package]] name = "tesla-charge-controller" -version = "0.2.0" +version = "0.2.1" dependencies = [ "async-channel", "chrono", diff --git a/Cargo.toml b/Cargo.toml index f3821d2..16fd6cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tesla-charge-controller" -version = "0.2.0" +version = "0.2.1" edition = "2021" license = "MITNFA" description = "Controls Tesla charge rate based on solar charge data" diff --git a/src/api_interface.rs b/src/api_interface.rs index e624f3f..383ec8f 100644 --- a/src/api_interface.rs +++ b/src/api_interface.rs @@ -140,7 +140,6 @@ impl TeslaInterface { match get_state(&self.api, self.vehicle.id, &mut self.last_cop_state).await { Ok(new_state) => { self.metrics.tesla_online.set(1.); - self.last_refresh = Instant::now(); let mut state = self .state .write()