Skip to content

Commit

Permalink
Update vehicle.ex
Browse files Browse the repository at this point in the history
Update marketing name for Model S LR+
  • Loading branch information
cwanja authored Nov 10, 2024
1 parent f2aae62 commit 35b987a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/teslamate/vehicles/vehicle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ defmodule TeslaMate.Vehicles.Vehicle do
with str when is_binary(str) <- type do
case String.downcase(str) do
"models" <> _ -> "S"
"models2" <> _ -> "S"
"model3" <> _ -> "3"
"modelx" <> _ -> "X"
"modely" <> _ -> "Y"
Expand All @@ -78,6 +79,7 @@ defmodule TeslaMate.Vehicles.Vehicle do
case {model, trim_badging, type} do
{"S", "100D", "lychee"} -> "LR"
{"S", "P100D", "lychee"} -> "Plaid"
{"S", "100D", "models2"} -> "LR+"
{"3", "P74D", _} -> "LR AWD Performance"
{"3", "74D", _} -> "LR AWD"
{"3", "74", _} -> "LR"
Expand Down

0 comments on commit 35b987a

Please sign in to comment.