An electric drive device, wherein the electric drive comprises: - a battery, - an open-winding motor, and - at least a first three-phase inverter and a second three-phase inverter each connected to a different side of the open-winding motor, - three alternating current sensors (310, 320, 330) provided between the one of the three-phase inverters (300, 301) and the open-winding motor to detect alternating currents of respective phases, - a first P bus connecting wire, a second P bus connecting wire, a first N bus connecting wire and a second N bus connecting wire, which are partly arranged in proximity to each other, and - a direct-current sensor (380, 390) to detect collectively currents (IdL1 and IdL2, IdR1 and IdR2) flowing to the first P bus connecting wire and the first N bus connecting wire or to the second P bus connecting wire and the second N bus connecting wire, - a diagnosis unit that diagnoses a failure of the direct-current sensor (380, 390) when the sum of currents measured by the direct-current sensor (380, 390) and the currents measured by the alternating-current sensors (310, 320, 330) is above a certain threshold, wherein the direct-current sensor (380, 390) detects direct currents supplied to the first three-phase inverter or the second three-phase inverter for driving the open-winding motor, wherein the battery is connected to the first three-phase inverter via the first P bus connecting wire and the first N bus connecting wire, and to the second three-phase inverter via the second P bus connecting wire and the second N bus connecting wire, and the direct-current sensor (380, 390) has a core surrounding the first P bus connecting wire and the first N bus connecting wire or the second P bus connecting wire and the second N bus connecting wire. - a battery, - an open-winding motor, and - at least a first three-phase inverter and a second three-phase inverter each connected to a different side of the open-winding motor, - three alternating current sensors (310, 320, 330) provided between the one of the three-phase inverters (300, 301) and the open-winding motor to detect alternating currents of respective phases, - a first P bus connecting wire, a second P bus connecting wire, a first N bus connecting wire and a second N bus connecting wire, which are partly arranged in proximity to each other, and - a direct-current sensor (380, 390) to detect collectively currents (IdL1 and IdL2, IdR1 and IdR2) flowing to the first P bus connecting wire and the first N bus connecting wire or to the second P bus connecting wire and the second N bus connecting wire, - a diagnosis unit that diagnoses a failure of the direct-current sensor (380, 390) when the sum of currents measured by the direct-current sensor (380, 390) and the currents measured by the alternating-current sensors (310, 320, 330) is above a certain threshold, wherein the direct-current sensor (380, 390) detects direct currents supplied to the first three-phase inverter or the second three-phase inverter for driving the open-winding motor, wherein the battery is connected to the first three-phase inverter via the first P bus connecting wire and the first N bus connecting wire, and to the second three-phase inverter via the second P bus connecting wire and the second N bus connecting wire, and the direct-current sensor (380, 390) has a core surrounding the first P bus connecting wire and the first N bus connecting wire or the second P bus connecting wire and the second N bus connecting wire. wherein the battery is connected to the first three-phase inverter via the first P bus connecting wire and the first N bus connecting wire, and to the second three-phase inverter via the second P bus connecting wire and the second N bus connecting wire, and the direct-current sensor (380, 390) has a core surrounding the first P bus connecting wire and the first N bus connecting wire or the second P bus connecting wire and the second N bus connecting wire.