mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Fix race when deleting a scene (#81896)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user