mirror of
https://github.com/elisspace/core.git
synced 2026-10-04 00:09:57 +00:00
Reload notify platforms concurrently with asyncio.gather (#39384)
This commit is contained in:
@@ -66,8 +66,11 @@ async def async_reload(hass, integration_name):
|
||||
):
|
||||
return
|
||||
|
||||
for data in hass.data[NOTIFY_SERVICES][integration_name]:
|
||||
await _async_setup_notify_services(hass, data)
|
||||
tasks = [
|
||||
_async_setup_notify_services(hass, data)
|
||||
for data in hass.data[NOTIFY_SERVICES][integration_name]
|
||||
]
|
||||
await asyncio.gather(*tasks)
|
||||
|
||||
|
||||
async def _async_setup_notify_services(hass, data):
|
||||
|
||||
Reference in New Issue
Block a user