From 4aecd84fd6e116a99a268e803fbb15100c10b407 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 20 Jan 2020 16:14:32 +0100 Subject: [PATCH 1/2] Fix deCONZ update entry from Hassio discovery --- homeassistant/components/deconz/config_flow.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/deconz/config_flow.py b/homeassistant/components/deconz/config_flow.py index 5a9ef232e6174..43c6cee919366 100644 --- a/homeassistant/components/deconz/config_flow.py +++ b/homeassistant/components/deconz/config_flow.py @@ -216,15 +216,15 @@ async def async_step_hassio(self, user_input=None): This flow is triggered by the discovery component. """ self.bridge_id = normalize_bridge_id(user_input[CONF_SERIAL]) - gateway = self.hass.data.get(DOMAIN, {}).get(self.bridge_id) - - if gateway: - return self._update_entry( - gateway.config_entry, - user_input[CONF_HOST], - user_input[CONF_PORT], - user_input[CONF_API_KEY], - ) + + for entry in self.hass.config_entries.async_entries(DOMAIN): + if self.bridge_id == entry.unique_id: + return self._update_entry( + entry, + user_input[CONF_HOST], + user_input[CONF_PORT], + user_input[CONF_API_KEY], + ) await self.async_set_unique_id(self.bridge_id) self._hassio_discovery = user_input From 2c1207027de7f18c9d5873f4e8354df30adc13b9 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 20 Jan 2020 16:40:56 +0100 Subject: [PATCH 2/2] Empty commit to re-trigger build