added parameter

This commit is contained in:
John Lancaster
2024-07-08 17:55:01 -05:00
parent 87ed3c81ae
commit 9210cbf8a1
3 changed files with 7 additions and 12 deletions

View File

@@ -2,17 +2,11 @@ from pathlib import Path
from appdaemon.adbase import ADBase
filename = Path(__file__).name
# print(f' Importing {filename} '.center(50, '-'))
class Foo(ADBase):
changes: bool = True
def initialize(self):
self.adapi = self.get_ad_api()
self.adapi.log(f'Initialized app from {filename} new line changes: {self.changes}')
# self.adapi.log(f'New log line: {self.changes}')
# self.adapi.log(f'Even newer log line: {self.changes}')
# print(f' Foo.changes = {Foo.changes} '.center(50, '-'))
self.adapi.log(f'Initialized app from {Path(__file__).relative_to(self.AD.app_dir.parent)}')
self.adapi.log(f'new line changes: {self.changes}')