mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Reload notify platforms concurrently with asyncio.gather (#39384)
This commit is contained in:
parent
22a123fd4b
commit
54ef16f01a
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user