From ce8ec3acb174f71f4393d9a4bce1f2bcd39ed9f2 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 17 Apr 2019 22:27:11 -0700 Subject: [PATCH] Don't warn for missing services (#23182) --- homeassistant/helpers/service.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/helpers/service.py b/homeassistant/helpers/service.py index 1cfbf9e3c5f..8c576f58c14 100644 --- a/homeassistant/helpers/service.py +++ b/homeassistant/helpers/service.py @@ -210,9 +210,8 @@ async def async_get_all_descriptions(hass): domain_yaml = loaded[domain] yaml_description = domain_yaml.get(service, {}) - if not yaml_description: - _LOGGER.warning("Missing service description for %s/%s", - domain, service) + # Don't warn for missing services, because it triggers false + # positives for things like scripts, that register as a service description = descriptions_cache[cache_key] = { 'description': yaml_description.get('description', ''),