Improve mqtt schema typing (#120407)
This commit is contained in:
parent
62fd692d27
commit
7453b7df63
23 changed files with 54 additions and 50 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue