gauges: set as disconnected if no data

This commit is contained in:
Alex Janka 2024-12-26 22:30:21 +11:00
parent 33f484846f
commit 0553cdd8bf

View file

@ -214,6 +214,7 @@ impl TeslaInterface {
state.charge_state = Some(new_charge_state);
} else {
TESLA_ONLINE.set(0);
self.charging_state.set(ChargingState::Disconnected);
match self.state.write() {
Ok(mut state) => {
state.charge_state = None;