The detector in the photo shows it the right way, but that casing is designed to mount the other way up, there will have been a small securing screw near the tab, hence the hole.
This is the train of thought with a lot of people sadly, when you turn up and your doors are swinging in the wind and your nice, expensive kit has gone the savings will pale into insignificance.