diff --git a/apps/app1/subdir/foo.py b/apps/app1/subdir/foo.py index d63b2f3..8eac778 100644 --- a/apps/app1/subdir/foo.py +++ b/apps/app1/subdir/foo.py @@ -2,8 +2,11 @@ from pathlib import Path from appdaemon.adapi import ADAPI +from ..notification import Notification + class Foo(ADAPI): def initialize(self): self.log(f'Initialized app from {Path(__file__).relative_to(self.AD.app_dir.parent)}') + self.notification = Notification(self.AD) # self.log(' FOO '.center(50, '-')) diff --git a/apps/apps.yaml b/apps/apps.yaml deleted file mode 100644 index 4c84034..0000000 --- a/apps/apps.yaml +++ /dev/null @@ -1,3 +0,0 @@ -hello_world: - module: hello - class: HelloWorld diff --git a/apps/databases.yaml b/apps/databases.yaml index bb1f0a0..f1bc02c 100644 --- a/apps/databases.yaml +++ b/apps/databases.yaml @@ -7,8 +7,8 @@ App1: App1Foo: module: app1.subdir.foo class: Foo - dependencies: - - companion_app + # dependencies: + # - companion_app App2: module: app2.database diff --git a/apps/global_apps.yaml b/apps/global_apps.yaml index 33de708..92c63ed 100644 --- a/apps/global_apps.yaml +++ b/apps/global_apps.yaml @@ -2,9 +2,9 @@ globals: module: globals global: true -companion_app: - module: app1.notification - global: true +# companion_app: +# module: app1.notification +# global: true global_modules: - hello diff --git a/apps/repo_apps.yaml b/apps/repo_apps.yaml index 1ba4a85..9017abc 100644 --- a/apps/repo_apps.yaml +++ b/apps/repo_apps.yaml @@ -1,15 +1,11 @@ -Foo: +Repo-Foo: module: my_pkg class: Foo -Bar: +Repo-Bar: module: my_pkg.my_sub_pkg class: Bar -Baz: +Repo-Baz: module: my_pkg.my_sub_pkg.baz class: Baz - -Hello: - module: hello - class: HelloWorld diff --git a/apps/standard_import_apps.yaml b/apps/standard_import_apps.yaml index 1c34d12..1202dd5 100644 --- a/apps/standard_import_apps.yaml +++ b/apps/standard_import_apps.yaml @@ -1,3 +1,7 @@ +Hello: + module: hello + class: HelloWorld + Hello2: module: hello class: HelloWorld diff --git a/apps/test/test.yaml b/apps/test/test.yaml index e76fae6..d5edb22 100644 --- a/apps/test/test.yaml +++ b/apps/test/test.yaml @@ -2,4 +2,4 @@ test_notifier: module: test_notify class: TestNotifier log_level: DEBUG - dependencies: companion_app \ No newline at end of file + # dependencies: companion_app \ No newline at end of file