feat!: Improved attribute parsing in device macro
This commit is contained in:
@@ -36,7 +36,7 @@ pub struct Config {
|
||||
crate::register_type!(Config);
|
||||
|
||||
#[derive(Debug, Clone, Device)]
|
||||
#[device(add_methods(Self::add_methods))]
|
||||
#[device(add_methods = Self::add_methods)]
|
||||
pub struct HueBridge {
|
||||
config: Config,
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ pub struct Config {
|
||||
crate::register_type!(Config);
|
||||
|
||||
#[derive(Debug, Clone, Device)]
|
||||
#[device(add_methods(Self::add_methods))]
|
||||
#[device(add_methods = Self::add_methods)]
|
||||
pub struct Ntfy {
|
||||
config: Config,
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ pub struct State {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Device)]
|
||||
#[device(add_methods(Self::add_methods))]
|
||||
#[device(add_methods = Self::add_methods)]
|
||||
pub struct Presence {
|
||||
config: Config,
|
||||
state: Arc<RwLock<State>>,
|
||||
|
||||
Reference in New Issue
Block a user