Force alias when importing sensor PLATFORM_SCHEMA (#120536)

This commit is contained in:
epenet 2024-06-26 12:14:13 +02:00 committed by GitHub
parent 348ceca19f
commit c49fce5541
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
123 changed files with 448 additions and 247 deletions

View file

@ -11,7 +11,7 @@ import voluptuous as vol
import xmltodict
from homeassistant.components.sensor import (
PLATFORM_SCHEMA,
PLATFORM_SCHEMA as SENSOR_PLATFORM_SCHEMA,
SensorDeviceClass,
SensorEntity,
SensorEntityDescription,
@ -37,7 +37,7 @@ DEFAULT_NAME = "ted"
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=10)
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
PLATFORM_SCHEMA = SENSOR_PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_HOST): cv.string,
vol.Optional(CONF_PORT, default=80): cv.port,