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:
@@ -24,6 +24,7 @@ pub struct Config {
|
||||
pub struct HueGroup {
|
||||
config: Config,
|
||||
}
|
||||
crate::register_device!(HueGroup);
|
||||
|
||||
// Couple of helper function to get the correct urls
|
||||
#[async_trait]
|
||||
|
||||
Reference in New Issue
Block a user