Removed old darkness system
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user