Skip to content

Commit

Permalink
Update matterbridge.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Apr 1, 2024
1 parent afacb25 commit ac10437
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/matterbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1046,11 +1046,9 @@ export class Matterbridge extends EventEmitter {
const data = await fs.readFile(configFile, 'utf8');
const config = JSON.parse(data) as PlatformConfig;
this.log.debug(`Config file found: ${configFile}.\nConfig:${rs}\n`, config);
//if (config.name !== plugin.name || config.type !== plugin.type) {
//this.log.warn(`Config file ${configFile} does not match plugin ${plg}${plugin.name}${wr} type ${typ}${plugin.type}${wr}`);
/* The first time a plugin is added to the system, the config file is created with the plugin name and type "".*/
config.name = plugin.name;
config.type = plugin.type;
//}
return config;
} catch (err) {
if (err instanceof Error) {
Expand Down

0 comments on commit ac10437

Please sign in to comment.