mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +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
|
return False
|
||||||
|
|
||||||
except CannotConnect as err:
|
except CannotConnect as err:
|
||||||
LOGGER.error("Error connecting to the Hue bridge at %s", host)
|
raise ConfigEntryNotReady(
|
||||||
raise ConfigEntryNotReady from err
|
f"Error connecting to the Hue bridge at {host}"
|
||||||
|
) from err
|
||||||
|
|
||||||
except Exception: # pylint: disable=broad-except
|
except Exception: # pylint: disable=broad-except
|
||||||
LOGGER.exception("Unknown error connecting with Hue bridge at %s", host)
|
LOGGER.exception("Unknown error connecting with Hue bridge at %s", host)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user