mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Improve error message when prepare_setup_platform fails.
This commit is contained in:
parent
4eeaa16f16
commit
c523a0b509
@ -119,8 +119,8 @@ def prepare_setup_platform(hass, config, domain, platform_name):
|
||||
for component in platform.DEPENDENCIES:
|
||||
if not setup_component(hass, component, config):
|
||||
_LOGGER.error(
|
||||
'Unable to prepare setup for platform %s because not all '
|
||||
'dependencies could be initialized', platform_path)
|
||||
'Unable to prepare setup for platform %s because dependency '
|
||||
'%s could not be initialized', platform_path, component)
|
||||
return None
|
||||
|
||||
return platform
|
||||
|
Loading…
x
Reference in New Issue
Block a user