mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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:
|
for component in platform.DEPENDENCIES:
|
||||||
if not setup_component(hass, component, config):
|
if not setup_component(hass, component, config):
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
'Unable to prepare setup for platform %s because not all '
|
'Unable to prepare setup for platform %s because dependency '
|
||||||
'dependencies could be initialized', platform_path)
|
'%s could not be initialized', platform_path, component)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return platform
|
return platform
|
||||||
|
Loading…
x
Reference in New Issue
Block a user