291 files
This commit is contained in:
@@ -4,7 +4,6 @@ from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from homeassistant.components.cloud.const import DOMAIN as CLOUD_DOMAIN
|
||||
from homeassistant.helpers.device_registry import DeviceInfo
|
||||
|
||||
from ...const import DOMAIN
|
||||
@@ -15,6 +14,12 @@ if TYPE_CHECKING:
|
||||
|
||||
from homeassistant.components.cloud.client import CloudClient
|
||||
|
||||
# Spelled out rather than imported. Importing anything from the cloud
|
||||
# integration runs its package first, and that pulls in Alexa, Google
|
||||
# Assistant and camera with it, on the single import thread, at startup,
|
||||
# for a house that may not use the cloud at all. #1898.
|
||||
CLOUD_DOMAIN = "cloud"
|
||||
|
||||
|
||||
class HomeAssistantCloudSpookEntity(SpookEntity):
|
||||
"""Defines an base Spook entity for Home Assistant Cloud related entities."""
|
||||
|
||||
@@ -5,12 +5,11 @@ from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from homeassistant.components.cloud import DOMAIN as CLOUD_DOMAIN
|
||||
from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription
|
||||
from homeassistant.const import EntityCategory
|
||||
|
||||
from ...entity import SpookEntityDescription
|
||||
from .entity import HomeAssistantCloudSpookEntity
|
||||
from .entity import CLOUD_DOMAIN, HomeAssistantCloudSpookEntity
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Awaitable, Callable
|
||||
|
||||
Reference in New Issue
Block a user