Skip to content

Commit cd800da

Browse files
Bre77frenck
authored andcommitted
Update Tesla OAuth Server in Tesla Fleet (home-assistant#149280)
1 parent 4c8ab8e commit cd800da

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

homeassistant/components/tesla_fleet/const.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414

1515
LOGGER = logging.getLogger(__package__)
1616

17-
CLIENT_ID = "71b813eb-4a2e-483a-b831-4dec5cb9bf0d"
18-
AUTHORIZE_URL = "https://auth.tesla.com/oauth2/v3/authorize"
19-
TOKEN_URL = "https://auth.tesla.com/oauth2/v3/token"
17+
AUTHORIZE_URL = "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/authorize"
18+
TOKEN_URL = "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/token"
2019

2120
SCOPES = [
2221
Scope.OPENID,

tests/components/tesla_fleet/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
ClientCredential,
99
async_import_client_credential,
1010
)
11-
from homeassistant.components.tesla_fleet.const import CLIENT_ID, DOMAIN
11+
from homeassistant.components.tesla_fleet.const import DOMAIN
1212
from homeassistant.const import Platform
1313
from homeassistant.core import HomeAssistant
1414
from homeassistant.helpers import entity_registry as er
@@ -28,7 +28,7 @@ async def setup_platform(
2828
await async_import_client_credential(
2929
hass,
3030
DOMAIN,
31-
ClientCredential(CLIENT_ID, "", "Home Assistant"),
31+
ClientCredential("CLIENT_ID", "CLIENT_SECRET", "Home Assistant"),
3232
DOMAIN,
3333
)
3434

0 commit comments

Comments
 (0)