Blue bottles and fruit flies like rotting stuff. Long grass is more likely to attract butterflies and bees, I don't imagine it will be bringing a lot of manky flies into your house. However if there is rubbish or dog shite around, that might be the cause.