gauges: set as disconnected if no data
This commit is contained in:
parent
33f484846f
commit
0553cdd8bf
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue