mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Remove Nest code related to Works with Nest API removal (#130785)
This commit is contained in:
@@ -4,8 +4,7 @@ from __future__ import annotations
|
||||
|
||||
from collections.abc import Awaitable, Callable, Generator
|
||||
import copy
|
||||
from dataclasses import dataclass, field
|
||||
import time
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
from google_nest_sdm.auth import AbstractAuth
|
||||
@@ -37,7 +36,6 @@ SUBSCRIPTION_NAME = "projects/cloud-id-9876/subscriptions/subscriber-id-9876"
|
||||
class NestTestConfig:
|
||||
"""Holder for integration configuration."""
|
||||
|
||||
config: dict[str, Any] = field(default_factory=dict)
|
||||
config_entry_data: dict[str, Any] | None = None
|
||||
credential: ClientCredential | None = None
|
||||
|
||||
@@ -54,39 +52,9 @@ TEST_CONFIG_APP_CREDS = NestTestConfig(
|
||||
credential=ClientCredential(CLIENT_ID, CLIENT_SECRET),
|
||||
)
|
||||
TEST_CONFIGFLOW_APP_CREDS = NestTestConfig(
|
||||
config=TEST_CONFIG_APP_CREDS.config,
|
||||
credential=ClientCredential(CLIENT_ID, CLIENT_SECRET),
|
||||
)
|
||||
|
||||
TEST_CONFIG_LEGACY = NestTestConfig(
|
||||
config={
|
||||
"nest": {
|
||||
"client_id": "some-client-id",
|
||||
"client_secret": "some-client-secret",
|
||||
},
|
||||
},
|
||||
config_entry_data={
|
||||
"auth_implementation": "local",
|
||||
"tokens": {
|
||||
"expires_at": time.time() + 86400,
|
||||
"access_token": {
|
||||
"token": "some-token",
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
TEST_CONFIG_ENTRY_LEGACY = NestTestConfig(
|
||||
config_entry_data={
|
||||
"auth_implementation": "local",
|
||||
"tokens": {
|
||||
"expires_at": time.time() + 86400,
|
||||
"access_token": {
|
||||
"token": "some-token",
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
TEST_CONFIG_NEW_SUBSCRIPTION = NestTestConfig(
|
||||
config_entry_data={
|
||||
"sdm": {},
|
||||
|
||||
Reference in New Issue
Block a user