From c0e1b97119ff2f128c73cfc7e77357a3b0fc51a4 Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Fri, 1 Nov 2019 23:36:23 +0100 Subject: [PATCH] deCONZ - Improve discovery logging (#28452) --- homeassistant/components/deconz/config_flow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/deconz/config_flow.py b/homeassistant/components/deconz/config_flow.py index 5ede8e715b9..b9a299230ad 100644 --- a/homeassistant/components/deconz/config_flow.py +++ b/homeassistant/components/deconz/config_flow.py @@ -13,6 +13,7 @@ from homeassistant.core import callback from homeassistant.helpers import aiohttp_client from .const import ( + _LOGGER, CONF_ALLOW_CLIP_SENSOR, CONF_ALLOW_DECONZ_GROUPS, CONF_BRIDGEID, @@ -176,6 +177,8 @@ class DeconzFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): uuid = discovery_info[ATTR_UUID].replace("uuid:", "") + _LOGGER.debug("deCONZ gateway discovered (%s)", uuid) + for entry in self.hass.config_entries.async_entries(DOMAIN): if uuid == entry.data.get(CONF_UUID): return await self._update_entry(entry, discovery_info[CONF_HOST])