Improve mqtt schema typing (#120407)

This commit is contained in:
Marc Mueller 2024-06-25 13:03:18 +02:00 committed by GitHub
parent 62fd692d27
commit 7453b7df63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 54 additions and 50 deletions

View file

@ -27,7 +27,7 @@ from homeassistant.const import (
from homeassistant.core import HomeAssistant, callback
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers.typing import ConfigType, VolSchemaType
from . import subscription
from .config import MQTT_BASE_SCHEMA
@ -103,7 +103,7 @@ class MqttDeviceTracker(MqttEntity, TrackerEntity):
_value_template: Callable[[ReceivePayloadType], ReceivePayloadType]
@staticmethod
def config_schema() -> vol.Schema:
def config_schema() -> VolSchemaType:
"""Return the config schema."""
return DISCOVERY_SCHEMA