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:
committed by
GitHub
parent
bb63da764e
commit
adcd4e59cf
@@ -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 {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user