From d810baffc2f03c0ac469d6d4e501c45eed25d9f0 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sun, 18 Oct 2026 18:53:58 +0200 Subject: [PATCH] Define public names of the homeassistant integration (#187166) --- .../components/homeassistant/__init__.py | 18 +++++++++++++++--- script/hassfest/core_files.py | 1 - 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/homeassistant/__init__.py b/homeassistant/components/homeassistant/__init__.py index cab7ac20e2cc..d82a25344d28 100644 --- a/homeassistant/components/homeassistant/__init__.py +++ b/homeassistant/components/homeassistant/__init__.py @@ -22,11 +22,11 @@ from .const import ( DATA_EXPOSED_ENTITIES, DATA_STOP_HANDLER, DOMAIN, - SERVICE_HOMEASSISTANT_RESTART, # noqa: F401 - SERVICE_HOMEASSISTANT_STOP, # noqa: F401 + SERVICE_HOMEASSISTANT_RESTART, + SERVICE_HOMEASSISTANT_STOP, HomeAssistantService, ) -from .exposed_entities import ExposedEntities, async_should_expose # noqa: F401 +from .exposed_entities import ExposedEntities, async_should_expose from .services import async_setup_services # To be deprecated at a later stage, replaced by HomeAssistantService @@ -43,6 +43,18 @@ DEPRECATION_URL = ( "deprecating-core-and-supervised-installation-methods-and-32-bit-systems/" ) +__all__ = [ + "DOMAIN", + "SERVICE_HOMEASSISTANT_RESTART", + "SERVICE_HOMEASSISTANT_STOP", + "SERVICE_RELOAD_ALL", + "SERVICE_RELOAD_CONFIG_ENTRY", + "SERVICE_RELOAD_CORE_CONFIG", + "SERVICE_RELOAD_CUSTOM_TEMPLATES", + "async_set_stop_handler", + "async_should_expose", +] + def _is_32_bit() -> bool: size = struct.calcsize("P") diff --git a/script/hassfest/core_files.py b/script/hassfest/core_files.py index 7ac7f232cfc0..7be861c793cb 100644 --- a/script/hassfest/core_files.py +++ b/script/hassfest/core_files.py @@ -24,7 +24,6 @@ MISSING_ALL = { "frontend", "google_assistant", "group", - "homeassistant", "homeassistant_hardware", "http", "input_boolean",