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:
Bram Kragten
2021-02-23 14:29:57 +01:00
committed by GitHub
parent ea4bbd771f
commit afa91e886b
6 changed files with 105 additions and 12 deletions

View File

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