diff --git a/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java b/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java index c9ff81601f..f761fb4e77 100644 --- a/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java +++ b/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java @@ -176,7 +176,7 @@ public class ScriptModuleTypeProvider implements ModuleTypeProvider { private String getPreferredMimeType(ScriptEngineFactory factory) { List mimeTypes = new ArrayList<>(factory.getScriptTypes()); - mimeTypes.removeIf(mimeType -> !mimeType.contains("application") || mimeType.contains("x-")); + mimeTypes.removeIf(mimeType -> !mimeType.contains("application") || "application/python".equals(mimeType)); return mimeTypes.isEmpty() ? factory.getScriptTypes().get(0) : mimeTypes.get(0); }