diff --git a/homeassistant/components/google_assistant/__init__.py b/homeassistant/components/google_assistant/__init__.py index b27641721bbf..aebe751ee16a 100644 --- a/homeassistant/components/google_assistant/__init__.py +++ b/homeassistant/components/google_assistant/__init__.py @@ -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: diff --git a/script/hassfest/core_files.py b/script/hassfest/core_files.py index 7be861c793cb..2ad177f8c020 100644 --- a/script/hassfest/core_files.py +++ b/script/hassfest/core_files.py @@ -22,7 +22,6 @@ MISSING_ALL = { "demo", "energy", "frontend", - "google_assistant", "group", "homeassistant_hardware", "http", diff --git a/tests/components/google_assistant/test_smart_home.py b/tests/components/google_assistant/test_smart_home.py index 9a1815ea4133..b85c92d4230c 100644 --- a/tests/components/google_assistant/test_smart_home.py +++ b/tests/components/google_assistant/test_smart_home.py @@ -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,