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

@ -12,7 +12,7 @@ import geopy.distance
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 (
@ -53,7 +53,7 @@ FILTER_PORT = 14580
MSG_FORMATS = ["compressed", "uncompressed", "mic-e", "object"]
PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend(
PLATFORM_SCHEMA = DEVICE_TRACKER_PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_CALLSIGNS): cv.ensure_list,
vol.Required(CONF_USERNAME): cv.string,