Force alias when importing notify PLATFORM_SCHEMA (#120494)

This commit is contained in:
epenet 2024-06-26 10:02:24 +02:00 committed by GitHub
parent 59959141af
commit 4bfecea2f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 102 additions and 84 deletions

View file

@ -26,7 +26,7 @@ from homeassistant.components.notify import (
ATTR_TARGET,
ATTR_TITLE,
ATTR_TITLE_DEFAULT,
PLATFORM_SCHEMA,
PLATFORM_SCHEMA as NOTIFY_PLATFORM_SCHEMA,
BaseNotificationService,
)
from homeassistant.const import ATTR_NAME, URL_ROOT
@ -61,7 +61,7 @@ def gcm_api_deprecated(value):
return value
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
PLATFORM_SCHEMA = NOTIFY_PLATFORM_SCHEMA.extend(
{
vol.Optional("gcm_sender_id"): vol.All(cv.string, gcm_api_deprecated),
vol.Optional("gcm_api_key"): cv.string,