mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Fix race when deleting a script (#81897)
This commit is contained in:
parent
ae2b2acab5
commit
2f9982d1c7
@ -16,9 +16,8 @@ async def async_setup(hass):
|
||||
|
||||
async def hook(action, config_key):
|
||||
"""post_write_hook for Config View that reloads scripts."""
|
||||
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