Repository: home-assistant/core
File: homeassistant/components/todo/intent.py (Python)

Code before:
        target_list = hass.data[DATA_COMPONENT].get_entity(
            match_result.states[0].entity_id
        )
        if target_list is None:
            raise intent.IntentHandleError(
                f"No to-do list: {list_name}", "list_not_found"
            )

        # Execute specific action
        await self.async_handle_toto_intent(target_list, item)

        # Build intent response
        response: intent.IntentResponse = intent_obj.create_response()
        response.async_set_results(
            [
                intent.IntentResponseTarget(
                    type=intent.IntentResponseTargetType.ENTITY,
                    name=list_name,
                    id=target_list.entity_id,
                )
            ]
        )
        return response


class ListAddItemIntent(ListBaseIntentHandler):
    """Handle ListAddItem intents."""

    intent_type = INTENT_LIST_ADD_ITEM
    description = "Add item to a todo list"

    async def async_handle_toto_intent(
        self, target_list: TodoListEntity, item: str
    ) -> None:
        """Execute action specific to this intent."""

        # Add to list
        await target_list.async_create_todo_item(
            TodoItem(summary=item, status=TodoItemStatus.NEEDS_ACTION)
        )


class ListCompleteItemIntent(ListBaseIntentHandler):
    """Handle ListCompleteItem intents."""

    intent_type = INTENT_LIST_COMPLETE_ITEM
    description = "Complete item on a todo list"

    async def async_handle_toto_intent(
        self, target_list: TodoListEntity, item: str
    ) -> None:

Review comment (suggestion):
```suggestion
class ListAddItemIntentHandler(ListBaseIntentHandler):
```
Same for others.

Code after:
        )
        if target_list is None:
            raise intent.IntentHandleError(
                f"No to-do list: {list_name}", "list_not_found"
            )

        # Execute specific action
        await self._async_do_handle(target_list, item)

        # Build intent response
        response: intent.IntentResponse = intent_obj.create_response()
        response.async_set_results(
            [
                intent.IntentResponseTarget(
                    type=intent.IntentResponseTargetType.ENTITY,
                    name=list_name,
                    id=target_list.entity_id,
                )
            ]
        )
        return response


class ListAddItemIntentHandler(ListBaseIntentHandler):
    """Handle ListAddItem intents."""

    intent_type = INTENT_LIST_ADD_ITEM
    description = "Add item to a todo list"

    async def _async_do_handle(self, target_list: TodoListEntity, item: str) -> None:
        """Execute action specific to this intent handler."""

        # Add to list
        await target_list.async_create_todo_item(
            TodoItem(summary=item, status=TodoItemStatus.NEEDS_ACTION)
        )


class ListCompleteItemIntentHandler(ListBaseIntentHandler):
    """Handle ListCompleteItem intents."""

    intent_type = INTENT_LIST_COMPLETE_ITEM
    description = "Complete item on a todo list"

    async def _async_do_handle(self, target_list: TodoListEntity, item: str) -> None:
        """Execute action specific to this intent handler."""

        # Find item in list
        matching_item = None
        for todo_item in target_list.todo_items or ():
            if (