Converted macro to derive macro
This commit is contained in:
@@ -6,7 +6,7 @@ use automation_lib::device::{Device, LuaDeviceCreate};
|
||||
use automation_lib::event::{OnDarkness, OnPresence};
|
||||
use automation_lib::messages::{DarknessMessage, PresenceMessage};
|
||||
use automation_lib::mqtt::WrappedAsyncClient;
|
||||
use automation_macro::{LuaDeviceConfig, impl_device};
|
||||
use automation_macro::{LuaDevice, LuaDeviceConfig};
|
||||
use tracing::{trace, warn};
|
||||
|
||||
#[derive(Debug, LuaDeviceConfig, Clone)]
|
||||
@@ -18,11 +18,10 @@ pub struct Config {
|
||||
pub client: WrappedAsyncClient,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, LuaDevice)]
|
||||
pub struct DebugBridge {
|
||||
config: Config,
|
||||
}
|
||||
impl_device!(DebugBridge);
|
||||
|
||||
#[async_trait]
|
||||
impl LuaDeviceCreate for DebugBridge {
|
||||
|
||||
Reference in New Issue
Block a user