Skip to content
Snippets Groups Projects
Unverified Commit adcd4e59 authored by Ruslan Sayfutdinov's avatar Ruslan Sayfutdinov Committed by GitHub
Browse files

More useful message on services.yaml parse error (#103847)

parent bb63da76
No related branches found
No related tags found
No related merge requests found
......@@ -549,9 +549,11 @@ def _load_services_file(hass: HomeAssistant, integration: Integration) -> JSON_T
"Unable to find services.yaml for the %s integration", integration.domain
)
return {}
except (HomeAssistantError, vol.Invalid):
except (HomeAssistantError, vol.Invalid) as ex:
_LOGGER.warning(
"Unable to parse services.yaml for the %s integration", integration.domain
"Unable to parse services.yaml for the %s integration: %s",
integration.domain,
ex,
)
return {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment