Tesla Motors Inc (NASDAQ:TSLA) has just won the right to sell its vehicles directly to consumers in New York. The company’s CEO Elon Musk went to Texas earlier this week to argue for a change in the law so that Tesla would be able to do the same there.

Tesla Motors

Today Musk tweeted that a judge in New York dismissed a lawsuit filed by auto dealers in the state who claimed that the company’s direct sales model violated New York’s franchise laws.

“New York judge states: ‘…dealers cannot utilize the Franchised Dealer Act as a means to sue their competitors.’ Exactly!” he tweeted.

Musk appeared on CNBC today and said that a number of consumers don’t see visiting auto dealerships to buy a car in the traditional way “as a positive experience.” According to Musk, Tesla Motors Inc (NASDAQ:TSLA) sells cars direct to consumers because traditional dealers are less motivated to sell electric cars over their other vehicles because doing so would undermine the non-electric vehicles on the lot.

The Wall Street Journal reports that there may be some kind of “business logic” to the traditional auto dealership because selling and fixing vehicles takes up a lot of space and requires expensive buildings. By working with major auto retail chains, automakers don’t have to carry this burden themselves.

Some experts believe Tesla may even look to traditional auto dealerships later if it is successful, as it considers whether it’s still a good idea to carry those expenses itself.

At the moment of this writing, shares of Tesla Motors Inc (NASDAQ:TSLA) were up 1 percent.