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

@ -11,7 +11,7 @@ import simplehound.core as hound
import voluptuous as vol
from homeassistant.components.image_processing import (
PLATFORM_SCHEMA,
PLATFORM_SCHEMA as IMAGE_PROCESSING_PLATFORM_SCHEMA,
ImageProcessingEntity,
)
from homeassistant.const import (
@ -41,7 +41,7 @@ DATETIME_FORMAT = "%Y-%m-%d_%H:%M:%S"
DEV = "dev"
PROD = "prod"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
PLATFORM_SCHEMA = IMAGE_PROCESSING_PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_API_KEY): cv.string,
vol.Optional(CONF_ACCOUNT_TYPE, default=DEV): vol.In([DEV, PROD]),