mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Ensure hue connection errors are passed to ConfigEntryNotReady (#49674)
- Limits log spam on retry
This commit is contained in:
parent
5a993a3ff3
commit
9222d3e9f9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user