code cleanup + add CLI bin
This commit is contained in:
parent
c5866eeccc
commit
230034c7f0
5 changed files with 64 additions and 7 deletions
|
|
@ -1,9 +1,5 @@
|
|||
use crate::tasmota::{PowerStatusData, StatusResponse, TasmotaInterface, TasmotaInterfaceConfig};
|
||||
use crate::types::Error;
|
||||
use reqwest::Client;
|
||||
use serde::Deserialize;
|
||||
use std::fs;
|
||||
|
||||
pub trait Monitoring {
|
||||
async fn get_power(&self) -> Result<isize, Error>;
|
||||
fn get_power(&self) -> impl std::future::Future<Output = Result<isize, Error>> + Send;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue