Downgrade Hue warning (#24033)

This commit is contained in:
Paulus Schoutsen 2019-05-22 05:59:16 -07:00 committed by Pascal Vizeli
parent fdf1fa48e3
commit 806903ffe0

View File

@ -60,6 +60,7 @@ class HueBridge:
return False return False
except CannotConnect: except CannotConnect:
LOGGER.error("Error connecting to the Hue bridge at %s", host)
raise ConfigEntryNotReady raise ConfigEntryNotReady
except Exception: # pylint: disable=broad-except except Exception: # pylint: disable=broad-except
@ -161,10 +162,8 @@ async def get_bridge(hass, host, username=None):
return bridge return bridge
except (aiohue.LinkButtonNotPressed, aiohue.Unauthorized): except (aiohue.LinkButtonNotPressed, aiohue.Unauthorized):
LOGGER.warning("Connected to Hue at %s but not registered.", host)
raise AuthenticationRequired raise AuthenticationRequired
except (asyncio.TimeoutError, aiohue.RequestError): except (asyncio.TimeoutError, aiohue.RequestError):
LOGGER.error("Error connecting to the Hue bridge at %s", host)
raise CannotConnect raise CannotConnect
except aiohue.AiohueException: except aiohue.AiohueException:
LOGGER.exception('Unknown Hue linking error occurred') LOGGER.exception('Unknown Hue linking error occurred')