mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 04:20:17 +00:00
Fix mixed case service schema registration (#96448)
This commit is contained in:
@@ -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, {})
|
||||
|
||||
Reference in New Issue
Block a user