renamed to notification
This commit is contained in:
@@ -4,3 +4,4 @@ from appdaemon.adapi import ADAPI
|
|||||||
class Database:
|
class Database:
|
||||||
def __init__(self, ad: ADAPI) -> None:
|
def __init__(self, ad: ADAPI) -> None:
|
||||||
self.ad = ad
|
self.ad = ad
|
||||||
|
self.ad.logger.info(' NEW LOG LINE '.center(50, '='))
|
||||||
|
|||||||
7
apps/app1/notification.py
Normal file
7
apps/app1/notification.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
from appdaemon.adapi import ADAPI
|
||||||
|
|
||||||
|
|
||||||
|
class Notification:
|
||||||
|
def __init__(self, ad: ADAPI) -> None:
|
||||||
|
self.ad = ad
|
||||||
|
self.ad.logger.info(' NEW LOG LINE '.center(50, '='))
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
App1:
|
# App1:
|
||||||
module: app1.database
|
# module: app1.database
|
||||||
class: DatabaseApp
|
# class: DatabaseApp
|
||||||
|
|
||||||
App2:
|
App2:
|
||||||
module: app2.database
|
module: app2.database
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
from app1.database import Database
|
from app1.notification import Notification
|
||||||
from appdaemon.adbase import ADBase
|
from appdaemon.adbase import ADBase
|
||||||
|
|
||||||
|
|
||||||
class Test(ADBase):
|
class Test(ADBase):
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
self.adapi = self.get_ad_api()
|
self.adapi = self.get_ad_api()
|
||||||
self.database = Database(self.adapi)
|
self.notification = Notification(self.adapi)
|
||||||
# self.notify.send("Test message from Test2 app.")
|
# self.notify.send("Test message from Test2 app.")
|
||||||
|
|||||||
Reference in New Issue
Block a user