{"record":{"id":"08286ca2276649cd","repo":"home-assistant/core","slug":"entity-not-found","errorCode":null,"errorMessage":"entity_not_found","messagePattern":"entity_not_found","errorType":"validation","errorClass":"ServiceValidationError","httpStatus":null,"severity":"warning","filePath":"homeassistant/components/bring/services.py","lineNumber":58,"sourceCode":"            vol.Coerce(ReactionType),\n        ),\n    }\n)\n\n\n@callback\ndef async_setup_services(hass: HomeAssistant) -> None:\n    \"\"\"Set up services for Bring! integration.\"\"\"\n\n    async def async_send_activity_stream_reaction(call: ServiceCall) -> None:\n        \"\"\"Send a reaction in response to recent activity of a list member.\"\"\"\n\n        if (\n            not (state := hass.states.get(call.data[ATTR_ENTITY_ID]))\n            or not (entity := er.async_get(hass).async_get(call.data[ATTR_ENTITY_ID]))\n            or not entity.config_entry_id\n        ):\n            raise ServiceValidationError(\n                translation_domain=DOMAIN,\n                translation_key=\"entity_not_found\",\n                translation_placeholders={\n                    ATTR_ENTITY_ID: call.data[ATTR_ENTITY_ID],\n                },\n            )\n        config_entry: BringConfigEntry = service.async_get_config_entry(\n            hass, DOMAIN, entity.config_entry_id\n        )\n\n        coordinator = config_entry.runtime_data.data\n\n        list_uuid = entity.unique_id.split(\"_\")[1]\n\n        activity = state.attributes[EventEntityStateAttribute.EVENT_TYPE]\n\n        reaction: ReactionType = call.data[ATTR_REACTION]\n","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/home-assistant/core/blob/58a3fdb3ea0538617f0a07efcfba6294de64fd59/homeassistant/components/bring/services.py#L40-L76","documentation":"ServiceValidationError with translation_key entity_not_found (bring/services.py:58), rendered as 'Failed to send reaction for Bring! — Unknown entity {entity_id}'. Raised by the send_reaction (async_send_activity_stream_reaction) service when the provided entity_id has no state object, no entry in the entity registry, or the registry entry has no config_entry_id.","triggerScenarios":"Calling bring.send_reaction with an entity_id that does not exist, was renamed/deleted, belongs to another integration, or whose registry entry is not attached to a bring config entry. The triple check on hass.states.get / er.async_get / config_entry_id fails.","commonSituations":"Hardcoded entity_id in an automation after the event entity was removed or the integration reloaded with a different unique_id; passing a todo-list entity instead of the event entity; typo in the entity_id; entity from a different Bring account/entry.","solutions":["Use the entity picker in the service call UI — it only offers valid bring activities event entities.","Verify the entity exists under Developer Tools -> States before calling.","If the entity was removed, reload the bring integration so the event entity is recreated, then update the automation.","Pass entity_id exactly, including the correct prefix (event.* entity from the bring integration)."],"exampleFix":"# before\n- action: bring.send_reaction\n  data:\n    entity_id: todo.groceries\n    reaction: thumbs_up\n# after (must be the activities event entity)\n- action: bring.send_reaction\n  data:\n    entity_id: event.bring_activities\n    reaction: thumbs_up","handlingStrategy":"validation","validationCode":"entity_id = call.data[\"entity_id\"]\nstate = hass.states.get(entity_id)\nregistry_entry = er.async_get(hass).async_get(entity_id)\nif state is None or registry_entry is None or not registry_entry.config_entry_id:\n    raise ServiceValidationError(\"Unknown entity\")","typeGuard":"from homeassistant.helpers import entity_registry as er\n\ndef is_valid_bring_event_entity(hass, entity_id: str) -> bool:\n    entry = er.async_get(hass).async_get(entity_id)\n    return (\n        hass.states.get(entity_id) is not None\n        and entry is not None\n        and entry.platform == \"bring\"\n        and entry.config_entry_id is not None\n    )","tryCatchPattern":"from homeassistant.exceptions import ServiceValidationError\n\ntry:\n    await hass.services.async_call(\"bring\", \"send_reaction\", service_data, blocking=True)\nexcept ServiceValidationError as err:\n    if err.translation_key == \"entity_not_found\":\n        # entity removed/renamed — fix the stored entity_id\n        pass\n    else:\n        raise","preventionTips":["Use the entity selector UI, which only lists valid bring activities entities.","Update automations after removing/reloading the bring integration.","Target event.* entities from the bring integration, not todo lists."],"tags":["bring","home-assistant","service-call","entity-not-found","validation"],"backgroundTag":null,"analyzedSha":"58a3fdb3ea0538617f0a07efcfba6294de64fd59","analyzedAt":"2026-08-14T20:54:38.818Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}