From 8f419109c3e33165958c261e0b801f5dfaaf74f3 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 15 Jan 2024 08:56:56 +1100 Subject: [PATCH] stupid mistake with last refresh time --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/api_interface.rs | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) 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()