The corporate authorities of each municipality may prevent the dangerous construction, installation and condition of chimneys, fireplaces, hearths, stoves, furnaces, pipes, ovens, boilers, fuel conduits, electric wiring and any other fire or heating apparatus used in and about any building, structure or camp accommodating persons in house trailers, house cars, and, if such enumerated are in a dangerous condition may cause them to be removed or placed in a safe condition. The corporate authorities also may cause all buildings and enclosures which are in a dangerous fire condition to be put in a safe fire condition, may regulate and prevent the carrying on of factories that are dangerous in causing or promoting fires, and may prevent the deposit of ashes in places that create a fire hazard.
65 ILCS 5/11-8-2