fix: Only send JSON state over WebSocket (#27225)

This commit is contained in:
Koen Kanters authored and GitHub committed 2025-05-03 08:42:07 +02:00
1 parent 908ecb3e2a
commit 39e4468308
9 files changed
+130 -86

No files matched your search

+4 -10
View File
@@ -225,16 +225,10 @@ export default abstract class ExternalJSExtension<M> extends Extension {
}
private async publishExternalJS(): Promise<void> {
await this.mqtt.publish(
`bridge/${this.mqttTopic}s`,
stringify(Array.from(this.getFiles(true))),
{
retain: true,
qos: 0,
},
settings.get().mqtt.base_topic,
true,
);
await this.mqtt.publish(`bridge/${this.mqttTopic}s`, stringify(Array.from(this.getFiles(true))), {
publishOptions: {retain: true, qos: 0},
skipLog: true,
});
}
private getImportPath(filePath: string): string {