From ac5c82eee3dc84d1ad143e08b9efb730ee9e1cc3 Mon Sep 17 00:00:00 2001 From: Avii Date: Sun, 16 Aug 2026 19:06:34 +0200 Subject: [PATCH] 1786899994 --- dashboard/src/battery.rs | 38 +++++++++++++++++++------------------- dashboard/src/ha_ext.rs | 12 +++++++++++- dashboard/src/messages.rs | 4 ++-- dashboard/src/ui.rs | 14 +++++++------- dashboard/ui/main.slint | 2 +- 5 files changed, 40 insertions(+), 30 deletions(-) diff --git a/dashboard/src/battery.rs b/dashboard/src/battery.rs index 6bfcd79..95c8f05 100644 --- a/dashboard/src/battery.rs +++ b/dashboard/src/battery.rs @@ -5,24 +5,25 @@ use tokio::{sync::mpsc::UnboundedSender, time::sleep}; use crate::{error::AppError, messages::EventMessage}; -// #[derive(Copy, Clone, Debug)] -// pub struct BatteryData { -// state_of_health: Ratio, -// state_of_charge: Ratio, -// energy: Energy, -// energy_full: Energy, -// energy_full_design: Energy, -// energy_rate: Power, -// state: State, -// voltage: ElectricPotential, -// temperature: Option, -// technology: Technology, -// cycle_count: Option, -// time_to_full: Option