Files
ad-test/conf/apps/restaurant/restaurant.py
2024-08-12 19:36:13 -05:00

12 lines
315 B
Python

from appdaemon.adapi import ADAPI
from food import Eggs
from food.meal import Meal
class Restaurant(ADAPI):
def initialize(self):
meal = Meal()
eggs: Eggs = meal.dishes[0]
self.log(f"{self.__class__.__name__} initialized with {eggs}")
self.log(f"Last dish: {meal.dishes[-1]}")