The invention relates to an electrical device, in particular an electrical storage device or sensor housing, preferably a battery, in particular a micro-battery or capacitor, having a feedthrough through a housing part which has the material thickness T of the housing of the device and is made of a metal, in particular iron, iron alloys, iron-nickel alloys, iron-nickel-cobalt alloys, KOVAR, steel, stainless steel, aluminum, aluminum alloys, AlSiC, magnesium, magnesium alloys, titanium or titanium alloys, wherein the housing part has at least one opening, the opening receiving a contact element, in particular a conductor, made of a conductive material in a glass or glass ceramic material. The invention is characterized in that the housing part has a flange in the region of the opening and thus forms an inner wall of the through-opening of the height H, EL which is greater than the material thickness T, the glass length EL of the glass or glass ceramic material preferably corresponding to the height H.