From 67ab0e052851caa97eab0aededfdf4ea4cebca88 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 15 Oct 2026 09:11:56 +0000 Subject: [PATCH] Define public names of the image integration --- homeassistant/components/image/__init__.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/image/__init__.py b/homeassistant/components/image/__init__.py index 2e0c64a3b5a3db..42b5c22e68dcca 100644 --- a/homeassistant/components/image/__init__.py +++ b/homeassistant/components/image/__init__.py @@ -32,7 +32,7 @@ from homeassistant.helpers.httpx_client import get_async_client from homeassistant.helpers.typing import UNDEFINED, ConfigType, UndefinedType -from .const import ( # noqa: F401 +from .const import ( ATTR_FILENAME, DATA_COMPONENT, DOMAIN, @@ -78,6 +78,25 @@ b"\xff\xd8\xff\xe2": "image/jpeg", } +__all__ = [ + "ATTR_FILENAME", + "DEFAULT_CONTENT_TYPE", + "DOMAIN", + "ENTITY_ID_FORMAT", + "GET_IMAGE_TIMEOUT", + "PLATFORM_SCHEMA", + "PLATFORM_SCHEMA_BASE", + "SERVICE_SNAPSHOT", + "Image", + "ImageContentTypeError", + "ImageEntity", + "ImageEntityDescription", + "ImageEntityStateAttribute", + "async_get_image", + "infer_image_type", + "valid_image_content_type", +] + class ImageEntityDescription(EntityDescription, frozen_or_thawed=True): """A class that describes image entities."""