13 lines
374 B
Python
13 lines
374 B
Python
from pathlib import Path
|
|
|
|
from appdaemon.adapi import ADAPI
|
|
|
|
from ..notification import Notification
|
|
|
|
|
|
class Foo(ADAPI):
|
|
def initialize(self):
|
|
# self.log('FOO')
|
|
self.log(f'Initialized app from {Path(__file__).relative_to(self.AD.app_dir.parent)}')
|
|
self.notification = Notification(self.AD, self.name)
|
|
# self.log(' FOO '.center(50, '*')) |