code cleanup + add CLI bin

This commit is contained in:
sigil-03 2025-04-06 15:35:10 -06:00
parent c5866eeccc
commit 230034c7f0
5 changed files with 64 additions and 7 deletions

View file

@ -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;
}