feat: WIP
All checks were successful
Build and deploy / build (push) Successful in 12m41s
Build and deploy / Deploy container (push) Has been skipped

This commit is contained in:
2025-10-10 03:54:27 +02:00
parent ad8db00c8f
commit 8c4e5bace7
10 changed files with 462 additions and 18 deletions

View File

@@ -104,6 +104,24 @@ impl Ntfy {
}
}
// impl Typed for Ntfy {
// fn type_name() -> String {
// "Ntfy".into()
// }
//
// fn generate_header() -> Option<String> {
// let type_name = <Self as Typed>::type_name();
// Some(format!("---@class {type_name}\nlocal {type_name}\n"))
// }
//
// fn generate_members() -> Option<String> {
// Some(format!(
// "---@async\n---@param notification Notification\nfunction {}:send_notification(notification) end\n",
// <Self as Typed>::type_name(),
// ))
// }
// }
#[async_trait]
impl LuaDeviceCreate for Ntfy {
type Config = Config;

View File

@@ -44,8 +44,8 @@ where
#[serde(default)]
pub callback: ActionCallback<(Light<T>, T)>,
#[serde(default)]
#[device_config(from_lua)]
#[serde(default)]
pub client: WrappedAsyncClient,
}
crate::register_type!(Config<StateOnOff>);