Electrical device, comprising - an electrical consumer unit , - an electronic switch including an electronic switching element and a driver device controlling the electronic switching element , - a pulsed power supply having a power unit with the electronic switching element and configured to generate an electrical supply voltage or an electrical supply current for the electrical consumer unit from an electrical voltage based on an alternate powering on and off of the electronic switching element , the power unit having a current path through which an electrical current (i) flows associated with the electronic switching element of the electronic switch during operation of the power supply , - at least one pulse transformer having a primary side with a primary-side winding (W1) and at least one secondary side with at least one secondary-side winding (W2) and which is coupled with the power unit by its primary side in such a way that electrical current (i) associated with the electronic switching element of the electronic switch flows through the primary-side winding (W1), characterised in that the pulse transformer is lightly loaded on its secondary side such that the secondary-side electrical voltage (U2) across the secondary-side winding (W2) is at least approximately proportional to the rate of change of the electrical current (i) associated with the electronic switching element of the electronic switch , - threshold comparator which is configured to compare the secondary-side electrical voltage (U2) or a filtered secondary-side electrical voltage (U2') that is generated by filtering with a reference voltage that is associated in particular with a time change of an electrical current which is associated with the fully functioning electronic switch and - an evaluation device coupled with the threshold comparator which evaluation device is configured to detect a potential defect of the electronic switch based on the comparison implemented by the threshold comparator . - an electrical consumer unit , - an electronic switch including an electronic switching element and a driver device controlling the electronic switching element , - a pulsed power supply having a power unit with the electronic switching element and configured to generate an electrical supply voltage or an electrical supply current for the electrical consumer unit from an electrical voltage based on an alternate powering on and off of the electronic switching element , the power unit having a current path through which an electrical current (i) flows associated with the electronic switching element of the electronic switch during operation of the power supply , - at least one pulse transformer having a primary side with a primary-side winding (W1) and at least one secondary side with at least one secondary-side winding (W2) and which is coupled with the power unit by its primary side in such a way that electrical current (i) associated with the electronic switching element of the electronic switch flows through the primary-side winding (W1), - threshold comparator which is configured to compare the secondary-side electrical voltage (U2) or a filtered secondary-side electrical voltage (U2') that is generated by filtering with a reference voltage that is associated in particular with a time change of an electrical current which is associated with the fully functioning electronic switch and - an evaluation device coupled with the threshold comparator which evaluation device is configured to detect a potential defect of the electronic switch based on the comparison implemented by the threshold comparator . <EOS>