mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Batch of Component(s) -> Integration(s) (#24972)
This commit is contained in:
committed by
Paulus Schoutsen
parent
e75c9efb3f
commit
31f569ada9
@@ -168,10 +168,10 @@ async def _async_setup_component(hass: core.HomeAssistant,
|
||||
_LOGGER.info("Setup of domain %s took %.1f seconds.", domain, end - start)
|
||||
|
||||
if result is False:
|
||||
log_error("Component failed to initialize.")
|
||||
log_error("Integration failed to initialize.")
|
||||
return False
|
||||
if result is not True:
|
||||
log_error("Component {!r} did not return boolean if setup was "
|
||||
log_error("Integration {!r} did not return boolean if setup was "
|
||||
"successful. Disabling component.".format(domain))
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user