fix: mqtt config removal #79

This commit is contained in:
leukipp
2025-09-19 22:07:14 +02:00
parent 10e7ff078a
commit f2f80e7d52
+1 -1
View File
@@ -154,7 +154,7 @@ const removeConfig = (type, config) => {
}
const path = config.unique_id.replace(`${INTEGRATION.node}_`, "");
const root = `${INTEGRATION.discovery}/${type}/${INTEGRATION.node}/${path}/config`;
return INTEGRATION.client.publish(root, null, { qos: 1, retain: true });
return INTEGRATION.client.publish(root, JSON.stringify({}), { qos: 1, retain: true });
};
/**