A driver (205, 405) for supplying power to drive at least one LED light source (230,430), the driver comprising: a rectifier (222,422) having an input and an output, wherein the rectifier is configured to receive an AC supply voltage at its input and configured to produce a rectified voltage, and wherein the rectifier output is connected to the at least one light source; and a capacitor (226, 426) having a first end connected to the rectifier output and a second end connected to a parallel combination of: a first branch arranged to provide a charging current path for the capacitor (226, 426) and arranged to block a discharging current of the capacitor (226, 426) from flowing through the first branch; and a switching device arranged to provide a controlled discharging current path for the capacitor (226, 426), wherein the switching device has a first impedance when the switching device is open, and has a second impedance less than the first impedance when the switching device is closed; and wherein the switching device is open when the rectified voltage is greater than a threshold voltage (Vswitch-in), and wherein the switching device is closed when the rectified voltage is less than the threshold voltage (Vswitch-in); wherein the at least one light source is driven by the rectifier output during a first portion of a period of the AC supply voltage, wherein the at least one light source is driven by the capacitor during a second portion of the period of the AC supply voltage when the switching device is closed, wherein the first and second portions of the period of the AC supply voltage have approximately the same duration. a rectifier (222,422) having an input and an output, wherein the rectifier is configured to receive an AC supply voltage at its input and configured to produce a rectified voltage, and wherein the rectifier output is connected to the at least one light source; and a capacitor (226, 426) having a first end connected to the rectifier output and a second end connected to a parallel combination of: a first branch arranged to provide a charging current path for the capacitor (226, 426) and arranged to block a discharging current of the capacitor (226, 426) from flowing through the first branch; and a switching device arranged to provide a controlled discharging current path for the capacitor (226, 426), wherein the switching device has a first impedance when the switching device is open, and has a second impedance less than the first impedance when the switching device is closed; and a first branch arranged to provide a charging current path for the capacitor (226, 426) and arranged to block a discharging current of the capacitor (226, 426) from flowing through the first branch; and a switching device arranged to provide a controlled discharging current path for the capacitor (226, 426), wherein the switching device has a first impedance when the switching device is open, and has a second impedance less than the first impedance when the switching device is closed; and wherein the switching device is open when the rectified voltage is greater than a threshold voltage (Vswitch-in), and wherein the switching device is closed when the rectified voltage is less than the threshold voltage (Vswitch-in); wherein the at least one light source is driven by the rectifier output during a first portion of a period of the AC supply voltage, wherein the at least one light source is driven by the capacitor during a second portion of the period of the AC supply voltage when the switching device is closed, wherein the first and second portions of the period of the AC supply voltage have approximately the same duration.