Add voluptuous type aliases (#120399)

This commit is contained in:
Marc Mueller
2024-06-25 11:58:27 +02:00
committed by GitHub
parent 53f5dec1b4
commit b4eee166aa
4 changed files with 13 additions and 12 deletions

View File

@ -5,6 +5,8 @@ from enum import Enum
from functools import partial
from typing import Any, Never
import voluptuous as vol
from .deprecation import (
DeferredDeprecatedAlias,
all_with_deprecated_constants,
@ -19,6 +21,8 @@ type ServiceDataType = dict[str, Any]
type StateType = str | int | float | None
type TemplateVarsType = Mapping[str, Any] | None
type NoEventData = Mapping[str, Never]
type VolSchemaType = vol.Schema | vol.All | vol.Any
type VolDictType = dict[str | vol.Marker, Any]
# Custom type for recorder Queries
type QueryType = Any