Make it possible to send notifications from lua

This commit is contained in:
2025-08-31 00:05:10 +02:00
parent 5d342afb1f
commit 64c7d950c5
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;
}