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

pull/103861/head
Ruslan Sayfutdinov 2023-11-12 16:18:12 +00:00 committed by GitHub
parent bb63da764e
commit adcd4e59cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

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