initial commit

This commit is contained in:
John Lancaster
2024-08-10 13:43:05 -05:00
commit 3b750449eb
9 changed files with 132 additions and 0 deletions

11
conf/apps/apps.yaml Normal file
View File

@@ -0,0 +1,11 @@
hello_world:
module: hello
class: HelloWorld
food_app:
module: food
class: Eggs
dependencies:
- hello_world
# class: Ham
# class: Spam

View File

@@ -0,0 +1,5 @@
from .eggs import Eggs
from .ham import Ham
from .spam import Spam
__all__ = ['Eggs', 'Ham', 'Spam']

View File

@@ -0,0 +1,5 @@
from appdaemon.adapi import ADAPI
class Eggs(ADAPI):
def initialize(self):
self.log(f'{self.__class__.__name__} Initialized')

View File

@@ -0,0 +1,5 @@
from appdaemon.adapi import ADAPI
class Ham(ADAPI):
def initialize(self):
self.log(f'{self.__class__.__name__} Initialized')

View File

@@ -0,0 +1,5 @@
from appdaemon.adapi import ADAPI
class Spam(ADAPI):
def initialize(self):
self.log(f'{self.__class__.__name__} Initialized')

5
conf/apps/hello.py Normal file
View File

@@ -0,0 +1,5 @@
from appdaemon.adapi import ADAPI
class HelloWorld(ADAPI):
def initialize(self):
self.log(f'{self.__class__.__name__} Initialized')