added food.meal

This commit is contained in:
John Lancaster
2024-08-10 14:11:45 -05:00
parent 2968c30dda
commit d5714808ed
4 changed files with 40 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
from dataclasses import dataclass, field
from typing import List
from appdaemon.adapi import ADAPI
from .eggs import Eggs
from .ham import Ham
class GreenEggs(Eggs):
pass
@dataclass
class Meal:
dishes: List[ADAPI] = field(init=False)
def __post_init__(self):
self.dishes = [GreenEggs, Ham]