Skip to content

Commit 3665e87

Browse files
committed
Don't warn for missing services (#23182)
1 parent fa0d538 commit 3665e87

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

homeassistant/helpers/service.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,8 @@ async def async_get_all_descriptions(hass):
210210
domain_yaml = loaded[domain]
211211
yaml_description = domain_yaml.get(service, {})
212212

213-
if not yaml_description:
214-
_LOGGER.warning("Missing service description for %s/%s",
215-
domain, service)
213+
# Don't warn for missing services, because it triggers false
214+
# positives for things like scripts, that register as a service
216215

217216
description = descriptions_cache[cache_key] = {
218217
'description': yaml_description.get('description', ''),

0 commit comments

Comments
 (0)