deCONZ - Improve discovery logging ()

This commit is contained in:
Robert Svensson 2019-11-01 23:36:23 +01:00 committed by GitHub
parent 6cc947abbf
commit c0e1b97119
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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])