Removed old presence system

This commit is contained in:
2025-08-31 23:44:02 +02:00
parent 4d63589e0d
commit 3bbc5d075f
5 changed files with 4 additions and 43 deletions

View File

@@ -6,7 +6,6 @@ use tokio::sync::mpsc;
#[derive(Debug, Clone)]
pub enum Event {
MqttMessage(Publish),
Presence(bool),
}
pub type Sender = mpsc::Sender<Event>;
@@ -34,8 +33,3 @@ pub trait OnMqtt: Sync + Send {
// fn topics(&self) -> Vec<&str>;
async fn on_mqtt(&self, message: Publish);
}
#[async_trait]
pub trait OnPresence: Sync + Send {
async fn on_presence(&self, presence: bool);
}