A little investigating showed that when the main breaker was turned off one leg remained hot. This occurs because a dimmer operates by dissipating some of the heat of the full current flow in order to dim the illumination of the light fixture.
Electrical Basics Wiring A Basic Single Pole Light Switch
Light switch hot even when turned off. Turn the switch on then touch the tester leads to both of the brass terminals on the switch and verify that the tester led goes on. If the led goes off the switch is good and the wiring is faulty but if the led stays on the switch is bad and needs to be replaced. Turn the switch off then repeat the test. Replacing old light switches is always a good idea. 3 the reason the light remains on is that the light is permanently connected to another hot wire in the ceiling. One possiblility is that the electrician that wired the house used a switch leg to control the fan.
Hot light switches can damage the switch and wiring and it could end up causing an electrical fire. Called square d they sent a guy out. When this happens a small spark on the electrical contacts will be emitted whenever you turn the light on and off. Over time light switches will wear out. Light switches that have been hot for a long period of time will overheat the wiring which can burn or damage the insulation. So half the circuits in the house were still hot.
In order for the light to work with the switch the ceiling light needs to be connected to the switched leg conductor coming off of the switch. Again this is a fire risk. The hot contact plate at the center of the light socket and that normally springs back out when removing a light bulb may have lost its stiffness preventing a positive contact with the end of the light bulb and causing it to flicker. In this case one of the black wires in the fan would always be hot unless the breaker is turned. The switch is failing. Soon the contacts wont meet properly and electricity will flow more freely creating heat.
Switch is warm to the touch it is natural for a dimmer switch to generate some heat that can be felt when you operate the switch normally youll feel it when you turn it off. Although dimmer switches do run a little hot even they can become too hot and cause damage.