Force alias when importing device tracker PLATFORM_SCHEMA (#120523)

This commit is contained in:
epenet 2024-06-26 11:13:27 +02:00 committed by GitHub
parent 41026b9227
commit 2c48843739
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 70 additions and 66 deletions

View file

@ -9,7 +9,7 @@ from ritassist import API
import voluptuous as vol
from homeassistant.components.device_tracker import (
PLATFORM_SCHEMA as PARENT_PLATFORM_SCHEMA,
PLATFORM_SCHEMA as DEVICE_TRACKER_PLATFORM_SCHEMA,
SeeCallback,
)
from homeassistant.const import (
@ -26,7 +26,7 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
_LOGGER = logging.getLogger(__name__)
PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend(
PLATFORM_SCHEMA = DEVICE_TRACKER_PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,