Have a door where house flies enter?
Stop them from hanging out around that door
Put an unwrapped bar of Irish Spring soap near the entry point.
Has worked for me since first started 9 months ago,
here in Coachella Valley, the land of the never-ending summer.