Moved last config items to lua + small cleanup

This commit is contained in:
2024-04-29 03:38:30 +02:00
parent 2a3b14267b
commit 2ff59872b2
11 changed files with 105 additions and 161 deletions

View File

@@ -238,6 +238,8 @@ impl mlua::UserData for DeviceManager {
let schedule = lua.from_value(schedule)?;
this.add_schedule(schedule).await;
Ok(())
})
});
methods.add_method("event_channel", |_lua, this, ()| Ok(this.event_channel()))
}
}