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:
@ -96,7 +96,7 @@ from .helpers.deprecation import (
|
||||
dir_with_deprecated_constants,
|
||||
)
|
||||
from .helpers.json import json_bytes, json_fragment
|
||||
from .helpers.typing import UNDEFINED, UndefinedType
|
||||
from .helpers.typing import UNDEFINED, UndefinedType, VolSchemaType
|
||||
from .util import dt as dt_util, location
|
||||
from .util.async_ import (
|
||||
cancelling,
|
||||
@ -2355,7 +2355,7 @@ class Service:
|
||||
| EntityServiceResponse
|
||||
| None,
|
||||
],
|
||||
schema: vol.Schema | None,
|
||||
schema: VolSchemaType | None,
|
||||
domain: str,
|
||||
service: str,
|
||||
context: Context | None = None,
|
||||
@ -2503,7 +2503,7 @@ class ServiceRegistry:
|
||||
| EntityServiceResponse
|
||||
| None,
|
||||
],
|
||||
schema: vol.Schema | None = None,
|
||||
schema: VolSchemaType | None = None,
|
||||
supports_response: SupportsResponse = SupportsResponse.NONE,
|
||||
job_type: HassJobType | None = None,
|
||||
) -> None:
|
||||
@ -2530,7 +2530,7 @@ class ServiceRegistry:
|
||||
| EntityServiceResponse
|
||||
| None,
|
||||
],
|
||||
schema: vol.Schema | None = None,
|
||||
schema: VolSchemaType | None = None,
|
||||
supports_response: SupportsResponse = SupportsResponse.NONE,
|
||||
job_type: HassJobType | None = None,
|
||||
) -> None:
|
||||
|
Reference in New Issue
Block a user