System and method for fire prevention in electrical installations