Skip to content

Commit

Permalink
Fix deCONZ retry mechanism for setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kane610 authored Feb 27, 2019
1 parent b87eb9d commit 2482816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/deconz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ async def async_setup_entry(hass, config_entry):

gateway = DeconzGateway(hass, config_entry)

hass.data[DOMAIN] = gateway

if not await gateway.async_setup():
return False

hass.data[DOMAIN] = gateway

device_registry = await \
hass.helpers.device_registry.async_get_registry()
device_registry.async_get_or_create(
Expand Down

0 comments on commit 2482816

Please sign in to comment.