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 dc3a7e5407
commit e7fb8bfb8d
16 changed files with 226 additions and 274 deletions

View File

@@ -15,9 +15,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,
}