mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Add voluptuous type aliases (#120399)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user