deCONZ - Improve discovery logging (#28452)
This commit is contained in:
parent
6cc947abbf
commit
c0e1b97119
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,7 @@ from homeassistant.core import callback
|
||||||
from homeassistant.helpers import aiohttp_client
|
from homeassistant.helpers import aiohttp_client
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
|
_LOGGER,
|
||||||
CONF_ALLOW_CLIP_SENSOR,
|
CONF_ALLOW_CLIP_SENSOR,
|
||||||
CONF_ALLOW_DECONZ_GROUPS,
|
CONF_ALLOW_DECONZ_GROUPS,
|
||||||
CONF_BRIDGEID,
|
CONF_BRIDGEID,
|
||||||
|
@ -176,6 +177,8 @@ class DeconzFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
|
|
||||||
uuid = discovery_info[ATTR_UUID].replace("uuid:", "")
|
uuid = discovery_info[ATTR_UUID].replace("uuid:", "")
|
||||||
|
|
||||||
|
_LOGGER.debug("deCONZ gateway discovered (%s)", uuid)
|
||||||
|
|
||||||
for entry in self.hass.config_entries.async_entries(DOMAIN):
|
for entry in self.hass.config_entries.async_entries(DOMAIN):
|
||||||
if uuid == entry.data.get(CONF_UUID):
|
if uuid == entry.data.get(CONF_UUID):
|
||||||
return await self._update_entry(entry, discovery_info[CONF_HOST])
|
return await self._update_entry(entry, discovery_info[CONF_HOST])
|
||||||
|
|
Loading…
Add table
Reference in a new issue