mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Downgrade Hue warning (#24033)
This commit is contained in:
committed by
Pascal Vizeli
parent
fdf1fa48e3
commit
806903ffe0
@@ -60,6 +60,7 @@ class HueBridge:
|
||||
return False
|
||||
|
||||
except CannotConnect:
|
||||
LOGGER.error("Error connecting to the Hue bridge at %s", host)
|
||||
raise ConfigEntryNotReady
|
||||
|
||||
except Exception: # pylint: disable=broad-except
|
||||
@@ -161,10 +162,8 @@ async def get_bridge(hass, host, username=None):
|
||||
|
||||
return bridge
|
||||
except (aiohue.LinkButtonNotPressed, aiohue.Unauthorized):
|
||||
LOGGER.warning("Connected to Hue at %s but not registered.", host)
|
||||
raise AuthenticationRequired
|
||||
except (asyncio.TimeoutError, aiohue.RequestError):
|
||||
LOGGER.error("Error connecting to the Hue bridge at %s", host)
|
||||
raise CannotConnect
|
||||
except aiohue.AiohueException:
|
||||
LOGGER.exception('Unknown Hue linking error occurred')
|
||||
|
Reference in New Issue
Block a user