Fix race when deleting an automation (#108772)
This commit is contained in:
parent
af1ba4b22f
commit
fcf72ae0c2
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue