fix: Home Assistant: fix action published to wrong topic (#32544)

This commit is contained in:
luar123
2026-07-12 07:52:32 +02:00
committed by GitHub
parent e475de15c9
commit a80c2db4c6
+1 -1
View File
@@ -1478,7 +1478,7 @@ export class HomeAssistant extends Extension {
if (match) {
const endpoint = match[1];
const endpointRegExp = new RegExp(`(.*)_${endpoint}`);
const endpointRegExp = new RegExp(`(.*)_${endpoint}$`);
const payload: KeyValue = {};
for (const key of Object.keys(data.message)) {
const keyMatch = endpointRegExp.exec(key);