feat: Add proper type definition for devices
All checks were successful
Build and deploy / build (push) Successful in 10m38s
Build and deploy / Deploy container (push) Has been skipped

Depending on the implemented traits the lua class will inherit from the
associated interface class.

It also specifies the constructor function for each of the devices.
This commit is contained in:
2025-10-10 03:50:47 +02:00
parent 8010f7a404
commit 1e9bd300a6
3 changed files with 68 additions and 1 deletions

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>);