Update models.py

This commit is contained in:
thekiwismarthome
2026-02-14 06:52:29 +13:00
committed by GitHub
parent 94f771d0e3
commit 1b05185dfe
@@ -52,6 +52,13 @@ class Product:
last_used: Optional[str] = None
custom: bool = False
source: str = "user"
tags: List[str] = field(default_factory=list)
collections: List[str] = field(default_factory=list)
taxonomy: Dict[str, Any] = field(default_factory=dict)
allergens: List[str] = field(default_factory=list)
substitution_group: str = ""
priority_level: int = 0
image_hint: str = ""
def to_dict(self) -> Dict[str, Any]:
"""Convert to dictionary."""