some renames and other changes

This commit is contained in:
John Lancaster
2024-07-07 22:07:02 -05:00
parent 3481ff7976
commit 870424baa0
8 changed files with 24 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
test:
module: test
class: Test
test_notifier:
module: test_notify
class: TestNotifier
log_level: DEBUG
dependencies: companion_app

View File

@@ -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")