Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions homeassistant/components/cloud/google_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
import asyncio
from http import HTTPStatus
import logging
from typing import Any

from hass_nabucasa import Cloud, cloud_api
from hass_nabucasa.google_report_state import ErrorResponse

from homeassistant.components.google_assistant import DOMAIN as GOOGLE_DOMAIN
from homeassistant.components.google_assistant.helpers import AbstractConfig
from homeassistant.const import CLOUD_NEVER_EXPOSED_ENTITIES
from homeassistant.core import CoreState, Event, callback, split_entity_id
from homeassistant.core import (
CoreState,
Event,
HomeAssistant,
callback,
split_entity_id,
)
from homeassistant.helpers import device_registry as dr, entity_registry as er, start
from homeassistant.setup import async_setup_component

Expand All @@ -28,8 +35,13 @@ class CloudGoogleConfig(AbstractConfig):
"""HA Cloud Configuration for Google Assistant."""

def __init__(
self, hass, config, cloud_user: str, prefs: CloudPreferences, cloud: Cloud
):
self,
hass: HomeAssistant,
config: dict[str, Any],
cloud_user: str,
prefs: CloudPreferences,
cloud: Cloud,
) -> None:
"""Initialize the Google config."""
super().__init__(hass)
self._config = config
Expand Down