Files
ad-dev-conf/apps/test/test_notify.py
John Lancaster 4abd6ce5d5 formatting
2024-07-07 22:27:13 -05:00

12 lines
382 B
Python

from app1.notification import Notification
from appdaemon.adbase import 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('Some notifications')