1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

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

This commit is contained in:
Ruslan Sayfutdinov
2023-11-12 16:18:12 +00:00
committed by GitHub
parent bb63da764e
commit adcd4e59cf

View File

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