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

@ -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: