mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-23 14:22:38 +00:00
Also pass settings to Extensions (#3410)
* Also pass settings to Extensions * Swap order of settings and logger
This commit is contained in:
1 parent
d073a7fc7a
commit
f0f7905782
1 file changed
+1
-1
+1
-1
@@ -77,7 +77,7 @@ class Controller {
|
||||
const extensions = fs.readdirSync(extensionPath).filter((f) => f.endsWith('.js'));
|
||||
for (const extension of extensions) {
|
||||
const Extension = require(path.join(extensionPath, extension.split('.')[0]));
|
||||
this.extensions.push(new Extension(...args, logger));
|
||||
this.extensions.push(new Extension(...args, settings, logger));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user