diff --git a/src/integrations/schema.js b/src/integrations/schema.js index 9e0db41..f43c74a 100644 --- a/src/integrations/schema.js +++ b/src/integrations/schema.js @@ -52,11 +52,6 @@ export const INTEGRATIONS = { configFields: ['host', 'port'], secretFields: ['username', 'password'], }, - mqtt_plant: { - name: 'MQTT Broker (Plant)', - configFields: ['host', 'port'], - secretFields: ['username', 'password'], - }, } export const MASKED = '••••••••' diff --git a/src/routes/integrations.js b/src/routes/integrations.js index 3ece339..a8a2125 100644 --- a/src/routes/integrations.js +++ b/src/routes/integrations.js @@ -141,7 +141,7 @@ export async function integrationRoutes(app) { if (res.status === 401) throw new Error('Invalid Nextcloud credentials') if (!res.ok) throw new Error(`Nextcloud returned ${res.status}`) } - else if (req.params.slug === 'mqtt' || req.params.slug.startsWith('mqtt_')) { + else if (req.params.slug === 'mqtt') { if (!creds.host || !creds.username || !creds.password) throw new Error('MQTT host, username and password are required') const mqtt = await import('mqtt') await new Promise((resolve, reject) => {