<p>A spraying device is for spraying fragrance, pest control composition or a sanitising composition held within a pressurised container. The spraying device comprises a container receiving section and a switching section. The switching section incorporates a solenoid switch. The solenoid switch incorporates a coiled spring that is frusto-conical in shape when in an extended, uncompressed configuration, and which is adapted to self-center with respect to an armature of the solenoid against which the spring urges. The coiled spring is located in a recess present in the armature. The recess has a depth of approximately the thickness of the coiled spring when the coiled spring is compressed.</p>