diff --git a/conf/apps/apps.yaml b/conf/apps/apps.yaml index d25104a..3b2c7a0 100644 --- a/conf/apps/apps.yaml +++ b/conf/apps/apps.yaml @@ -5,3 +5,5 @@ hello_world: simple_app: module: simple class: SimpleApp + dependencies: + - hello_world \ No newline at end of file diff --git a/conf/apps/family/chain.yaml b/conf/apps/family/chain.yaml new file mode 100644 index 0000000..e0678a7 --- /dev/null +++ b/conf/apps/family/chain.yaml @@ -0,0 +1,15 @@ +child: + module: child + class: Child + +parent: + module: parent + class: Parent + dependencies: + - child + +grand-parent: + module: grand_parent + class: GrandParent + dependencies: + - parent \ No newline at end of file diff --git a/conf/apps/family/child.py b/conf/apps/family/child.py new file mode 100644 index 0000000..cc43d80 --- /dev/null +++ b/conf/apps/family/child.py @@ -0,0 +1,6 @@ +from appdaemon.adapi import ADAPI + +class Child(ADAPI): + def initialize(self): + self.log(f"{self.__class__.__name__} Initialized") + self.logs(f'Modified {self.__class__.__name__}') diff --git a/conf/apps/family/grand_parent.py b/conf/apps/family/grand_parent.py new file mode 100644 index 0000000..d15b1c9 --- /dev/null +++ b/conf/apps/family/grand_parent.py @@ -0,0 +1,5 @@ +from appdaemon.adapi import ADAPI + +class GrandParent(ADAPI): + def initialize(self): + self.log(f"{self.__class__.__name__} Initialized") diff --git a/conf/apps/family/parent.py b/conf/apps/family/parent.py new file mode 100644 index 0000000..7cfa48f --- /dev/null +++ b/conf/apps/family/parent.py @@ -0,0 +1,5 @@ +from appdaemon.adapi import ADAPI + +class Parent(ADAPI): + def initialize(self): + self.log(f"{self.__class__.__name__} Initialized")