Improved the internals of the LuaDeviceConfig macro and improve the

usability of the macro
This commit is contained in:
2024-04-26 04:53:45 +02:00
parent 024b9c9dbc
commit 55237a2ba2
16 changed files with 226 additions and 274 deletions

View File

@@ -14,9 +14,9 @@ use crate::messages::{RemoteAction, RemoteMessage};
pub struct AudioSetupConfig {
#[device_config(flatten)]
mqtt: MqttDeviceConfig,
#[device_config(user_data)]
#[device_config(from_lua)]
mixer: WrappedDevice,
#[device_config(user_data)]
#[device_config(from_lua)]
speakers: WrappedDevice,
}