13 lines
324 B
Python
13 lines
324 B
Python
from pathlib import Path
|
|
|
|
from appdaemon.adbase import ADBase
|
|
|
|
filename = Path(__file__).name
|
|
print(f' Importing {filename} '.center(50, '-'))
|
|
|
|
class Bar(ADBase):
|
|
def initialize(self):
|
|
self.adapi = self.get_ad_api()
|
|
self.adapi.log(f'Initialized app from {filename}')
|
|
# self.adapi.log(f'CHANGED')
|