diff --git a/homeassistant/setup.py b/homeassistant/setup.py index 41201264da22d6..057843834c0516 100644 --- a/homeassistant/setup.py +++ b/homeassistant/setup.py @@ -160,8 +160,8 @@ def log_error(msg: str, link: bool = True) -> None: 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