Add description to tts and notify services (#46764)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com> Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
@@ -478,6 +478,9 @@ def async_set_service_schema(
|
||||
"fields": schema.get("fields", {}),
|
||||
}
|
||||
|
||||
if "target" in schema:
|
||||
description["target"] = schema["target"]
|
||||
|
||||
hass.data[SERVICE_DESCRIPTION_CACHE][f"{domain}.{service}"] = description
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user