mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +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
|
return
|
||||||
|
|
||||||
for data in hass.data[NOTIFY_SERVICES][integration_name]:
|
tasks = [
|
||||||
await _async_setup_notify_services(hass, data)
|
_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):
|
async def _async_setup_notify_services(hass, data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user