added parameter

This commit is contained in:
John Lancaster
2024-07-08 17:55:01 -05:00
parent 87ed3c81ae
commit 9210cbf8a1
3 changed files with 7 additions and 12 deletions

View File

@@ -2,10 +2,10 @@ from appdaemon.adapi import ADAPI
class Notification:
def __init__(self, ad: ADAPI) -> None:
def __init__(self, ad: ADAPI, name: str) -> None:
self.ad = ad
self.log = self.ad.logger.info
self.log('Notification initialize')
self.log(f'Notification initialized for {name}')
# self.ad.logger.info(' NOTIFICATION '.center(50, '-'))
def send(self, message: str = 'message not specified') -> None: