diff --git a/homeassistant/components/hue/bridge.py b/homeassistant/components/hue/bridge.py index 2a306fe77bb..801f2a33b70 100644 --- a/homeassistant/components/hue/bridge.py +++ b/homeassistant/components/hue/bridge.py @@ -90,8 +90,9 @@ class HueBridge: return False except CannotConnect as err: - LOGGER.error("Error connecting to the Hue bridge at %s", host) - raise ConfigEntryNotReady from err + raise ConfigEntryNotReady( + f"Error connecting to the Hue bridge at {host}" + ) from err except Exception: # pylint: disable=broad-except LOGGER.exception("Unknown error connecting with Hue bridge at %s", host)