mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Fix race when deleting an automation (#108772)
This commit is contained in:
parent
af1ba4b22f
commit
fcf72ae0c2
@ -22,9 +22,8 @@ async def async_setup(hass: HomeAssistant) -> bool:
|
||||
|
||||
async def hook(action: str, config_key: str) -> None:
|
||||
"""post_write_hook for Config View that reloads automations."""
|
||||
await hass.services.async_call(DOMAIN, SERVICE_RELOAD)
|
||||
|
||||
if action != ACTION_DELETE:
|
||||
await hass.services.async_call(DOMAIN, SERVICE_RELOAD)
|
||||
return
|
||||
|
||||
ent_reg = er.async_get(hass)
|
||||
|
Loading…
x
Reference in New Issue
Block a user