mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Define public names of the google_assistant integration (#187165)
This commit is contained in:
@@ -9,7 +9,7 @@ from homeassistant.exceptions import ConfigEntryError
|
||||
from homeassistant.helpers import config_validation as cv, device_registry as dr
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from .const import ( # noqa: F401
|
||||
from .const import (
|
||||
CONF_ALIASES,
|
||||
CONF_CLIENT_EMAIL,
|
||||
CONF_ENTITY_CONFIG,
|
||||
@@ -26,14 +26,11 @@ from .const import ( # noqa: F401
|
||||
DEFAULT_EXPOSE_BY_DEFAULT,
|
||||
DEFAULT_EXPOSED_DOMAINS,
|
||||
DOMAIN,
|
||||
EVENT_QUERY_RECEIVED,
|
||||
SOURCE_CLOUD,
|
||||
)
|
||||
from .http import GoogleAssistantView, GoogleConfig
|
||||
from .services import async_setup_services
|
||||
|
||||
from .const import EVENT_COMMAND_RECEIVED, EVENT_SYNC_RECEIVED # noqa: F401, isort:skip
|
||||
|
||||
CONF_ALLOW_UNLOCK = "allow_unlock"
|
||||
|
||||
PLATFORMS = [Platform.BUTTON]
|
||||
@@ -57,6 +54,12 @@ GOOGLE_SERVICE_ACCOUNT = probatio.Schema(
|
||||
extra=probatio.ALLOW_EXTRA,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"CONF_ROOM_HINT",
|
||||
"DOMAIN",
|
||||
"SOURCE_CLOUD",
|
||||
]
|
||||
|
||||
|
||||
def _check_report_state(data):
|
||||
if data[CONF_REPORT_STATE] and CONF_SERVICE_ACCOUNT not in data:
|
||||
|
||||
@@ -22,7 +22,6 @@ MISSING_ALL = {
|
||||
"demo",
|
||||
"energy",
|
||||
"frontend",
|
||||
"google_assistant",
|
||||
"group",
|
||||
"homeassistant_hardware",
|
||||
"http",
|
||||
|
||||
@@ -24,13 +24,11 @@ from homeassistant.components.demo.media_player import AbstractDemoPlayer
|
||||
|
||||
# pylint: disable-next=home-assistant-component-root-import
|
||||
from homeassistant.components.demo.switch import DemoSwitch
|
||||
from homeassistant.components.google_assistant import (
|
||||
from homeassistant.components.google_assistant import const, smart_home as sh, trait
|
||||
from homeassistant.components.google_assistant.const import (
|
||||
EVENT_COMMAND_RECEIVED,
|
||||
EVENT_QUERY_RECEIVED,
|
||||
EVENT_SYNC_RECEIVED,
|
||||
const,
|
||||
smart_home as sh,
|
||||
trait,
|
||||
)
|
||||
from homeassistant.const import (
|
||||
ATTR_UNIT_OF_MEASUREMENT,
|
||||
|
||||
Reference in New Issue
Block a user