dont monitor speed
This commit is contained in:
parent
2ae9403893
commit
2ed83084a7
|
@ -309,7 +309,6 @@ pub struct TeslaInterface {
|
||||||
struct MonitoredValues {
|
struct MonitoredValues {
|
||||||
conn_charge_cable: String,
|
conn_charge_cable: String,
|
||||||
climate_keeper: String,
|
climate_keeper: String,
|
||||||
speed: Option<i64>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Serialize, Deserialize, Clone)]
|
||||||
|
@ -553,13 +552,7 @@ impl TeslaInterface {
|
||||||
})
|
})
|
||||||
.await?
|
.await?
|
||||||
.drive_state
|
.drive_state
|
||||||
.and_then(|v| {
|
.and_then(|v| v.try_into().ok())
|
||||||
if self.monitored_values.speed != v.speed {
|
|
||||||
log::warn!("Current speed: \"{:?}\"", v.speed);
|
|
||||||
self.monitored_values.speed = v.speed;
|
|
||||||
}
|
|
||||||
v.try_into().ok()
|
|
||||||
})
|
|
||||||
.map_or((None, None), |FromDriveState(a, b)| (Some(a), Some(b)));
|
.map_or((None, None), |FromDriveState(a, b)| (Some(a), Some(b)));
|
||||||
|
|
||||||
let climate_state = self
|
let climate_state = self
|
||||||
|
|
Loading…
Reference in a new issue