added variant
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
test_notifier:
|
||||
module: test_notify
|
||||
class: TestNotifier
|
||||
# module: test_notify
|
||||
# class: TestNotifier
|
||||
module: variant
|
||||
class: Variant
|
||||
log_level: DEBUG
|
||||
# dependencies: companion_app
|
||||
@@ -7,5 +7,5 @@ class TestNotifier(ADBase):
|
||||
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 = Notification(self.adapi, self.name)
|
||||
self.notify.send('Some notifications')
|
||||
|
||||
9
apps/test/variant.py
Normal file
9
apps/test/variant.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from test_notify import TestNotifier
|
||||
from appdaemon.adapi import ADAPI
|
||||
|
||||
class Variant(TestNotifier, ADAPI):
|
||||
def initialize(self):
|
||||
self.adapi = self.get_ad_api()
|
||||
self.log = self.adapi.log
|
||||
self.log('Variant of the TestNotifier')
|
||||
# self.log(' VARIANT '.center(50, '*'))
|
||||
Reference in New Issue
Block a user