From 4547668c2becf2424807463ce70d278d61905d6d Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Wed, 14 Aug 2024 00:11:53 -0500 Subject: [PATCH] added family folder --- conf/apps/apps.yaml | 2 ++ conf/apps/family/chain.yaml | 15 +++++++++++++++ conf/apps/family/child.py | 6 ++++++ conf/apps/family/grand_parent.py | 5 +++++ conf/apps/family/parent.py | 5 +++++ 5 files changed, 33 insertions(+) create mode 100644 conf/apps/family/chain.yaml create mode 100644 conf/apps/family/child.py create mode 100644 conf/apps/family/grand_parent.py create mode 100644 conf/apps/family/parent.py 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")