Force alias when importing image processing PLATFORM_SCHEMA (#120527)

This commit is contained in:
epenet 2024-06-26 11:29:52 +02:00 committed by GitHub
parent 2c17d84fab
commit afbd24adfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 18 additions and 16 deletions

View file

@ -15,7 +15,7 @@ import voluptuous as vol
from homeassistant.components.image_processing import (
CONF_CONFIDENCE,
PLATFORM_SCHEMA,
PLATFORM_SCHEMA as IMAGE_PROCESSING_PLATFORM_SCHEMA,
ImageProcessingEntity,
)
from homeassistant.const import (
@ -68,7 +68,7 @@ CATEGORY_SCHEMA = vol.Schema(
{vol.Required(CONF_CATEGORY): cv.string, vol.Optional(CONF_AREA): AREA_SCHEMA}
)
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
PLATFORM_SCHEMA = IMAGE_PROCESSING_PLATFORM_SCHEMA.extend(
{
vol.Optional(CONF_FILE_OUT, default=[]): vol.All(cv.ensure_list, [cv.template]),
vol.Required(CONF_MODEL): vol.Schema(