feat!: Improve device type registration
Instead of one function that contains all the device types available in `automation_devices` a global registry is used were each device can register itself.
This commit is contained in:
@@ -32,6 +32,7 @@ pub struct Config {
|
||||
pub struct WakeOnLAN {
|
||||
config: Config,
|
||||
}
|
||||
crate::register_device!(WakeOnLAN);
|
||||
|
||||
#[async_trait]
|
||||
impl LuaDeviceCreate for WakeOnLAN {
|
||||
|
||||
Reference in New Issue
Block a user