If one has a genuine need for an asthma pump that cannot be otherwise fulfilled, then it would be permitted without dislike to use an inhaler. However, it would invalidate the fast and require that the fast be made up later. This is because anything that has a perceptible body breaks the fast if it enters the body through a normal channel.