diff --git a/bundles/org.openhab.core.config.discovery.addon/src/main/java/org/openhab/core/config/discovery/addon/AddonSuggestionService.java b/bundles/org.openhab.core.config.discovery.addon/src/main/java/org/openhab/core/config/discovery/addon/AddonSuggestionService.java index e0210b28270..a8d0504978d 100644 --- a/bundles/org.openhab.core.config.discovery.addon/src/main/java/org/openhab/core/config/discovery/addon/AddonSuggestionService.java +++ b/bundles/org.openhab.core.config.discovery.addon/src/main/java/org/openhab/core/config/discovery/addon/AddonSuggestionService.java @@ -80,7 +80,7 @@ public AddonSuggestionService(final @Reference ConfigurationAdmin configurationA this.configurationAdmin = configurationAdmin; this.localeProvider = localeProvider; - SUGGESTION_FINDERS.forEach(f -> baseFinderConfig.put(f, true)); + SUGGESTION_FINDERS.forEach(f -> baseFinderConfig.put(f, false)); modified(config); // Changes to the configuration are expected to call the {@link modified} method. This works well when running @@ -115,13 +115,13 @@ public void modified(@Nullable final Map config) { String cfgParam = SUGGESTION_FINDER_CONFIGS.get(finder); if (cfgParam != null) { boolean enabled = (config != null) - ? ConfigParser.valueAsOrElse(config.get(cfgParam), Boolean.class, cfg) + ? ConfigParser.valueAsOrElse(config.get(cfgParam), Boolean.class, true) : cfg; if (cfg != enabled) { - baseFinderConfig.put(finder, enabled); String type = SUGGESTION_FINDER_TYPES.get(finder); AddonFinderService finderService = addonFinderService; if (type != null && finderService != null) { + baseFinderConfig.put(finder, enabled); if (enabled) { finderService.install(type); } else {