Make it possible to send notifications from lua

This commit is contained in:
2025-08-31 00:05:10 +02:00
parent 461d24c0c2
commit 68a34b5fae
2 changed files with 36 additions and 8 deletions

View File

@@ -81,3 +81,9 @@ pub trait OpenClose {
}
}
impl<T> OpenClose for T where T: google_home::traits::OpenClose {}
pub trait AddAdditionalMethods {
fn add_methods<M: mlua::UserDataMethods<Self>>(methods: &mut M)
where
Self: Sized + 'static;
}