mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Update Tesla OAuth Server in Tesla Fleet (#149280)
This commit is contained in:
parent
2a0a31bff8
commit
47611619db
@ -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,
|
||||||
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user