Files
ad-dev-conf/apps/my_repo/my_pkg/motion.py
2024-03-18 17:42:29 -05:00

14 lines
396 B
Python

from pathlib import Path
import appdaemon.adbase as ad
print(f' Importing {Path(__file__).name} '.center(50, '-'))
class Motion(ad.ADBase):
def initialize(self):
self.adapi = self.get_ad_api()
self.changes = False
self.adapi.log(f'Initialized app from {__file__} new line changes: {self.changes}')
print(f'Done, motion.changes = {Motion.changes}'.center(50, '-'))