Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.mealie.todo Namespace Reference

Classes

class  MealieShoppingListTodoListEntity
 

Functions

TodoItem _convert_api_item (ShoppingItem item)
 
None async_setup_entry (HomeAssistant hass, MealieConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

dictionary TODO_STATUS_MAP
 
dictionary TODO_STATUS_MAP_INV = {v: k for k, v in TODO_STATUS_MAP.items()}
 

Detailed Description

Todo platform for Mealie.

Function Documentation

◆ _convert_api_item()

TodoItem homeassistant.components.mealie.todo._convert_api_item ( ShoppingItem  item)
private
Convert Mealie shopping list items into a TodoItem.

Definition at line 30 of file todo.py.

◆ async_setup_entry()

None homeassistant.components.mealie.todo.async_setup_entry ( HomeAssistant  hass,
MealieConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the todo platform for entity.

Definition at line 45 of file todo.py.

Variable Documentation

◆ TODO_STATUS_MAP

dictionary homeassistant.components.mealie.todo.TODO_STATUS_MAP
Initial value:
1 = {
2  False: TodoItemStatus.NEEDS_ACTION,
3  True: TodoItemStatus.COMPLETED,
4 }

Definition at line 23 of file todo.py.

◆ TODO_STATUS_MAP_INV

dictionary homeassistant.components.mealie.todo.TODO_STATUS_MAP_INV = {v: k for k, v in TODO_STATUS_MAP.items()}

Definition at line 27 of file todo.py.