Removed old darkness system

This commit is contained in:
2025-08-31 05:40:28 +02:00
parent aa730c9738
commit 6db5831571
6 changed files with 3 additions and 64 deletions

View File

@@ -6,7 +6,6 @@ use tokio::sync::mpsc;
#[derive(Debug, Clone)]
pub enum Event {
MqttMessage(Publish),
Darkness(bool),
Presence(bool),
}
@@ -40,8 +39,3 @@ pub trait OnMqtt: Sync + Send {
pub trait OnPresence: Sync + Send {
async fn on_presence(&self, presence: bool);
}
#[async_trait]
pub trait OnDarkness: Sync + Send {
async fn on_darkness(&self, dark: bool);
}