some renames and other changes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
test:
|
||||
module: test
|
||||
class: Test
|
||||
test_notifier:
|
||||
module: test_notify
|
||||
class: TestNotifier
|
||||
log_level: DEBUG
|
||||
dependencies: companion_app
|
||||
@@ -2,8 +2,10 @@ from app1.notification import Notification
|
||||
from appdaemon.adbase import ADBase
|
||||
|
||||
|
||||
class Test(ADBase):
|
||||
class TestNotifier(ADBase):
|
||||
def initialize(self):
|
||||
self.adapi = self.get_ad_api()
|
||||
self.log = self.adapi.log
|
||||
self.log(f'Initialized test notifier class: {self.__class__.__name__}')
|
||||
self.notify = Notification(self.adapi)
|
||||
self.notify.send("Test notification from Test2 app.")
|
||||
self.notify.send("Some notifications")
|
||||
Reference in New Issue
Block a user