From f2f80e7d521cc70b073b1f574e04a32c2e21b124 Mon Sep 17 00:00:00 2001 From: leukipp Date: Fri, 19 Sep 2025 22:07:14 +0200 Subject: [PATCH] fix: mqtt config removal #79 --- js/integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/integration.js b/js/integration.js index f7ed460..58c35fb 100644 --- a/js/integration.js +++ b/js/integration.js @@ -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 }); }; /**