Update Tesla OAuth Server in Tesla Fleet (#149280)

This commit is contained in:
Brett Adams 2025-07-23 22:45:50 +10:00 committed by GitHub
parent 2a0a31bff8
commit 47611619db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -14,9 +14,8 @@ CONF_REFRESH_TOKEN = "refresh_token"
LOGGER = logging.getLogger(__package__) LOGGER = logging.getLogger(__package__)
CLIENT_ID = "71b813eb-4a2e-483a-b831-4dec5cb9bf0d" AUTHORIZE_URL = "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/authorize"
AUTHORIZE_URL = "https://auth.tesla.com/oauth2/v3/authorize" TOKEN_URL = "https://fleet-auth.prd.vn.cloud.tesla.com/oauth2/v3/token"
TOKEN_URL = "https://auth.tesla.com/oauth2/v3/token"
SCOPES = [ SCOPES = [
Scope.OPENID, Scope.OPENID,

View File

@ -8,7 +8,7 @@ from homeassistant.components.application_credentials import (
ClientCredential, ClientCredential,
async_import_client_credential, async_import_client_credential,
) )
from homeassistant.components.tesla_fleet.const import CLIENT_ID, DOMAIN from homeassistant.components.tesla_fleet.const import DOMAIN
from homeassistant.const import Platform from homeassistant.const import Platform
from homeassistant.core import HomeAssistant from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er from homeassistant.helpers import entity_registry as er
@ -28,7 +28,7 @@ async def setup_platform(
await async_import_client_credential( await async_import_client_credential(
hass, hass,
DOMAIN, DOMAIN,
ClientCredential(CLIENT_ID, "", "Home Assistant"), ClientCredential("CLIENT_ID", "CLIENT_SECRET", "Home Assistant"),
DOMAIN, DOMAIN,
) )