formatting

This commit is contained in:
John Lancaster
2024-07-07 22:27:13 -05:00
parent 870424baa0
commit 4abd6ce5d5
3 changed files with 5 additions and 7 deletions

View File

@@ -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')

View File

@@ -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, '-'))

View File

@@ -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')