Split ZHA device loading and entities adding (#33075)
* Split ZHA device loading and entities adding. Load zha devices from ZHA gateway, but add entities after integration was setup. * Use hass.loop.create_task() * Split ZHA device initialization from loading. Restore and initialize ZHA devices separately. * Use hass.async_create_task() Load devices prior group initialization.
This commit is contained in:
1 parent
2bb29485be
commit
81cef9a281
11 files changed
+62
-36
No files matched your search
@@ -26,7 +26,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up the Zigbee Home Automation device tracker from config entry."""
|
||||
entities_to_create = hass.data[DATA_ZHA][DOMAIN] = []
|
||||
entities_to_create = hass.data[DATA_ZHA][DOMAIN]
|
||||
|
||||
unsub = async_dispatcher_connect(
|
||||
hass,
|
||||
|
||||
Reference in new issue
Block a user