An electrical device, comprising: at least a first coil and a second coil; an input terminal and an output terminal; an electrical circuit for connecting at least one of the coils between the input terminal and the output terminal, said electrical circuit including a plurality of switches (SW1, SW2, SW3); a sensor configured to measure a value of an electrical current circulating between the input and output terminals; a control unit coupled to the sensor and to the switches; wherein said control unit is configured to: measure a current value using said sensor; automatically open or close one or more of the switches, depending on the measured current value, to adapt the device's inductance by connecting one or more of the coils (L1, L2) between the input terminal and the output terminal or disconnecting one or more of the coils (L1, L2) from the input terminal or the output terminal; characterized in that the electrical device further comprises: a magnetic core, said at least first coil and second coil being coupled to said magnetic core; an auxiliary coil (L aux), coupled to said magnetic core and connected to a drive circuit; and in that the control unit is further configured to power the auxiliary coil (L aux) with the drive circuit, when opening or closing said switches (SW1, SW2, SW3), to smooth the transitions between different circuit configurations. at least a first coil and a second coil; an input terminal and an output terminal; an electrical circuit for connecting at least one of the coils between the input terminal and the output terminal, said electrical circuit including a plurality of switches (SW1, SW2, SW3); a sensor configured to measure a value of an electrical current circulating between the input and output terminals; a control unit coupled to the sensor and to the switches; wherein said control unit is configured to: measure a current value using said sensor; automatically open or close one or more of the switches, depending on the measured current value, to adapt the device's inductance by connecting one or more of the coils (L1, L2) between the input terminal and the output terminal or disconnecting one or more of the coils (L1, L2) from the input terminal or the output terminal; characterized in that the electrical device further comprises: a magnetic core, said at least first coil and second coil being coupled to said magnetic core; an auxiliary coil (L aux), coupled to said magnetic core and connected to a drive circuit; and in that the control unit is further configured to power the auxiliary coil (L aux) with the drive circuit, when opening or closing said switches (SW1, SW2, SW3), to smooth the transitions between different circuit configurations. measure a current value using said sensor; automatically open or close one or more of the switches, depending on the measured current value, to adapt the device's inductance by connecting one or more of the coils (L1, L2) between the input terminal and the output terminal or disconnecting one or more of the coils (L1, L2) from the input terminal or the output terminal; characterized in that the electrical device further comprises: a magnetic core, said at least first coil and second coil being coupled to said magnetic core; an auxiliary coil (L aux), coupled to said magnetic core and connected to a drive circuit; and in that the control unit is further configured to power the auxiliary coil (L aux) with the drive circuit, when opening or closing said switches (SW1, SW2, SW3), to smooth the transitions between different circuit configurations. a magnetic core, said at least first coil and second coil being coupled to said magnetic core; an auxiliary coil (L aux), coupled to said magnetic core and connected to a drive circuit; and in that the control unit is further configured to power the auxiliary coil (L aux) with the drive circuit, when opening or closing said switches (SW1, SW2, SW3), to smooth the transitions between different circuit configurations.