app definition organization
This commit is contained in:
@@ -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, '-'))
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
hello_world:
|
||||
module: hello
|
||||
class: HelloWorld
|
||||
@@ -7,8 +7,8 @@ App1:
|
||||
App1Foo:
|
||||
module: app1.subdir.foo
|
||||
class: Foo
|
||||
dependencies:
|
||||
- companion_app
|
||||
# dependencies:
|
||||
# - companion_app
|
||||
|
||||
App2:
|
||||
module: app2.database
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
Hello:
|
||||
module: hello
|
||||
class: HelloWorld
|
||||
|
||||
Hello2:
|
||||
module: hello
|
||||
class: HelloWorld
|
||||
|
||||
@@ -2,4 +2,4 @@ test_notifier:
|
||||
module: test_notify
|
||||
class: TestNotifier
|
||||
log_level: DEBUG
|
||||
dependencies: companion_app
|
||||
# dependencies: companion_app
|
||||
Reference in New Issue
Block a user