feat: Add proper type definition for devices
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:
@@ -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>);
|
||||
|
||||
Reference in New Issue
Block a user