some renames and other changes
This commit is contained in:
@@ -4,7 +4,9 @@ from appdaemon.adapi import ADAPI
|
||||
class Notification:
|
||||
def __init__(self, ad: ADAPI) -> None:
|
||||
self.ad = ad
|
||||
# self.ad.logger.info(' NEW LOG LINE '.center(50, '='))
|
||||
self.log = self.ad.logger.info
|
||||
self.log('Notification initialize')
|
||||
# self.ad.logger.info(' NOTIFICATION '.center(50, '-'))
|
||||
|
||||
def send(self, message: str = "message not specified") -> None:
|
||||
self.ad.log(message, level="DEBUG")
|
||||
self.ad.log(f'NOTIFICATION: {message}', level="DEBUG")
|
||||
|
||||
Reference in New Issue
Block a user