fix: mqtt config removal #79
This commit is contained in:
+1
-1
@@ -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 });
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user