diff --git a/apps/app1/notification.py b/apps/app1/notification.py index 8437ff2..6a4d1d7 100644 --- a/apps/app1/notification.py +++ b/apps/app1/notification.py @@ -8,5 +8,5 @@ class Notification: self.log('Notification initialize') # self.ad.logger.info(' NOTIFICATION '.center(50, '-')) - def send(self, message: str = "message not specified") -> None: - self.ad.log(f'NOTIFICATION: {message}', level="DEBUG") + def send(self, message: str = 'message not specified') -> None: + self.ad.log(f'NOTIFICATION: {message}', level='DEBUG') diff --git a/apps/app2/database.py b/apps/app2/database.py index 254bc26..1373c81 100644 --- a/apps/app2/database.py +++ b/apps/app2/database.py @@ -1,10 +1,8 @@ -from appdaemon.adapi import ADAPI - from app1.subdir.foo import Foo + class OtherDatabaseApp(Foo): def initialize(self): super().initialize() - self.log(f'Initialized from {__file__}') + self.log('This app inherits from a custom class') # self.log(' CHANGE '.center(50, '-')) - \ No newline at end of file diff --git a/apps/test/test_notify.py b/apps/test/test_notify.py index 9f98367..b407066 100644 --- a/apps/test/test_notify.py +++ b/apps/test/test_notify.py @@ -8,4 +8,4 @@ class TestNotifier(ADBase): self.log = self.adapi.log self.log(f'Initialized test notifier class: {self.__class__.__name__}') self.notify = Notification(self.adapi) - self.notify.send("Some notifications") + self.notify.send('Some notifications')