mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix deCONZ retry mechanism for setup
This commit is contained in:
parent
b87eb9d79e
commit
2482816a11
@ -68,11 +68,11 @@ async def async_setup_entry(hass, config_entry):
|
|||||||
|
|
||||||
gateway = DeconzGateway(hass, config_entry)
|
gateway = DeconzGateway(hass, config_entry)
|
||||||
|
|
||||||
hass.data[DOMAIN] = gateway
|
|
||||||
|
|
||||||
if not await gateway.async_setup():
|
if not await gateway.async_setup():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
hass.data[DOMAIN] = gateway
|
||||||
|
|
||||||
device_registry = await \
|
device_registry = await \
|
||||||
hass.helpers.device_registry.async_get_registry()
|
hass.helpers.device_registry.async_get_registry()
|
||||||
device_registry.async_get_or_create(
|
device_registry.async_get_or_create(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user