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

@ -51,7 +51,7 @@ import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
from homeassistant.helpers.json import json_dumps
from homeassistant.helpers.restore_state import RestoreEntity
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers.typing import ConfigType, VolSchemaType
import homeassistant.util.color as color_util
from homeassistant.util.json import json_loads_object
from homeassistant.util.yaml import dump as yaml_dump
@ -267,7 +267,7 @@ class MqttLightJson(MqttEntity, LightEntity, RestoreEntity):
_deprecated_color_handling: bool = False
@staticmethod
def config_schema() -> vol.Schema:
def config_schema() -> VolSchemaType:
"""Return the config schema."""
return DISCOVERY_SCHEMA_JSON