An appliance for drying and/or washing laundry, comprising: - an external enclosure of generally parallelepipedic shape and comprising at least one first removable face panel, - a drum located in said enclosure and rotatable about an axis, this drum comprising an internal cavity configured to receive laundry, - a motor for driving in rotation the drum about its axis, this motor being located in the enclosure under the drum, and - a system for heating and generating a flow of hot air through said cavity, this system being located in said enclosure, characterised in that it also comprises an autonomous fire extinguishing device, this device comprising: - at least one pipe with an elongate shape and closed at both its longitudinal ends, this pipe comprising a fusible thermoplastic wall delimiting an internal space, this pipe being thermoformed in order to impose on it a particular shape in the unconstrained free state corresponding to its mounting position inside the enclosure, and - a fire-extinguishing fluid within said space, this fire-extinguishing fluid being configured to be released by fusion of the wall of the pipe under the effect of the heat provided by a fire or a fire departure, and in that the device is configured to be mounted in said enclosure by dismounting and removing said first face panel, the device comprising two portions, referred to as a first portion in the shape of cradle which extends between the drum and the motor, from said first face panel to a face panel of the enclosure opposite said first face panel, and a second portion which extends on the side of said first face panel, said first portion being formed by a first segment of the pipe which forms a loop delimiting the periphery of said cradle, and said second portion being formed by a second segment of the pipe. - an external enclosure of generally parallelepipedic shape and comprising at least one first removable face panel, - a drum located in said enclosure and rotatable about an axis, this drum comprising an internal cavity configured to receive laundry, - a motor for driving in rotation the drum about its axis, this motor being located in the enclosure under the drum, and - a system for heating and generating a flow of hot air through said cavity, this system being located in said enclosure, characterised in that it also comprises an autonomous fire extinguishing device, this device comprising: - at least one pipe with an elongate shape and closed at both its longitudinal ends, this pipe comprising a fusible thermoplastic wall delimiting an internal space, this pipe being thermoformed in order to impose on it a particular shape in the unconstrained free state corresponding to its mounting position inside the enclosure, and - a fire-extinguishing fluid within said space, this fire-extinguishing fluid being configured to be released by fusion of the wall of the pipe under the effect of the heat provided by a fire or a fire departure, - at least one pipe with an elongate shape and closed at both its longitudinal ends, this pipe comprising a fusible thermoplastic wall delimiting an internal space, this pipe being thermoformed in order to impose on it a particular shape in the unconstrained free state corresponding to its mounting position inside the enclosure, and - a fire-extinguishing fluid within said space, this fire-extinguishing fluid being configured to be released by fusion of the wall of the pipe under the effect of the heat provided by a fire or a fire departure, and in that the device is configured to be mounted in said enclosure by dismounting and removing said first face panel, the device comprising two portions, referred to as a first portion in the shape of cradle which extends between the drum and the motor, from said first face panel to a face panel of the enclosure opposite said first face panel, and a second portion which extends on the side of said first face panel, said first portion being formed by a first segment of the pipe which forms a loop delimiting the periphery of said cradle, and said second portion being formed by a second segment of the pipe.