From 4581a741bdc22f6085c78bfbfe9c243d1b20a4d4 Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Tue, 6 Nov 2018 12:41:39 +0100 Subject: [PATCH] Report *which* component didn't return a bool (#18258) * Report *which* component didn't return a bool * break over-long line --- homeassistant/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/setup.py b/homeassistant/setup.py index 41201264da..057843834c 100644 --- a/homeassistant/setup.py +++ b/homeassistant/setup.py @@ -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