Fix mixed case service schema registration (#96448)
This commit is contained in:
parent
7009683226
commit
08af42b00e
3 changed files with 25 additions and 1 deletions
|
@ -701,6 +701,9 @@ def async_set_service_schema(
|
|||
hass: HomeAssistant, domain: str, service: str, schema: dict[str, Any]
|
||||
) -> None:
|
||||
"""Register a description for a service."""
|
||||
domain = domain.lower()
|
||||
service = service.lower()
|
||||
|
||||
descriptions_cache: dict[
|
||||
tuple[str, str], dict[str, Any] | None
|
||||
] = hass.data.setdefault(SERVICE_DESCRIPTION_CACHE, {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue