foo, bar, baz rename

This commit is contained in:
John Lancaster
2024-03-18 18:03:54 -05:00
parent 9c12df1256
commit c0d7871676
8 changed files with 58 additions and 33 deletions

View File

@@ -0,0 +1,18 @@
from pathlib import Path
from appdaemon.adbase import ADBase
filename = Path(__file__).name
print(f' Importing {filename} '.center(50, '-'))
class Foo(ADBase):
changes: bool = False
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'Done, motion.changes = {Foo.changes}'.center(50, '-'))