Silence Yeelight Discovery Log Errors (#76373)

This commit is contained in:
Alex Yao 2022-08-07 14:47:49 -05:00 committed by GitHub
parent 9552250f36
commit 714d46b153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,7 +269,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
await bulb.async_get_properties()
await bulb.async_stop_listening()
except (asyncio.TimeoutError, yeelight.BulbException) as err:
_LOGGER.error("Failed to get properties from %s: %s", host, err)
_LOGGER.debug("Failed to get properties from %s: %s", host, err)
raise CannotConnect from err
_LOGGER.debug("Get properties: %s", bulb.last_properties)
return MODEL_UNKNOWN