Removed unused event code

This commit is contained in:
2025-08-31 05:01:56 +02:00
parent eb36d41f17
commit 4980f4888e
3 changed files with 1 additions and 8 deletions

View File

@@ -3,7 +3,6 @@ use std::convert::Infallible;
use async_trait::async_trait;
use automation_lib::device::{Device, LuaDeviceCreate};
use automation_lib::event::{self, EventChannel};
use automation_lib::lua::traits::AddAdditionalMethods;
use automation_macro::{LuaDevice, LuaDeviceConfig};
use mlua::LuaSerdeExt;
@@ -117,8 +116,6 @@ pub struct Config {
#[device_config(default("https://ntfy.sh".into()))]
pub url: String,
pub topic: String,
#[device_config(rename("event_channel"), from_lua, with(|ec: EventChannel| ec.get_tx()))]
pub tx: event::Sender,
}
#[derive(Debug, Clone, LuaDevice)]