mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Report *which* component didn't return a bool (#18258)
* Report *which* component didn't return a bool * break over-long line
This commit is contained in:
parent
b506aafbb4
commit
4581a741bd
@ -160,8 +160,8 @@ async def _async_setup_component(hass: core.HomeAssistant,
|
||||
log_error("Component failed to initialize.")
|
||||
return False
|
||||
if result is not True:
|
||||
log_error("Component did not return boolean if setup was successful. "
|
||||
"Disabling component.")
|
||||
log_error("Component {!r} did not return boolean if setup was "
|
||||
"successful. Disabling component.".format(domain))
|
||||
loader.set_component(hass, domain, None)
|
||||
return False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user