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