diff --git a/lib/homeassistant.js b/lib/homeassistant.js index f2ba2eb8..dfbac689 100644 --- a/lib/homeassistant.js +++ b/lib/homeassistant.js @@ -234,7 +234,7 @@ const discovered = {}; function discover(deviceID, model, mqtt) { // Check if already discoverd and check if there are configs. - if (discovered[deviceID] || !mapping[model]) { + if (discovered[deviceID] || !mapping[model] || !settings.getDevice(deviceID)) { return; }