1
mirror of https://github.com/home-assistant/core synced 2024-09-25 00:41:32 +02:00

Fix race when deleting a scene (#81896)

This commit is contained in:
Erik Montnemery 2022-11-10 17:27:26 +01:00 committed by GitHub
parent 2f9982d1c7
commit 25d54f407e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,9 +15,8 @@ async def async_setup(hass):
async def hook(action, config_key):
"""post_write_hook for Config View that reloads scenes."""
await hass.services.async_call(DOMAIN, SERVICE_RELOAD)
if action != ACTION_DELETE:
await hass.services.async_call(DOMAIN, SERVICE_RELOAD)
return
ent_reg = entity_registry.async_get(hass)