Files
ad-dev-conf/apps/app1/notification.py
John Lancaster 4abd6ce5d5 formatting
2024-07-07 22:27:13 -05:00

13 lines
399 B
Python

from appdaemon.adapi import ADAPI
class Notification:
def __init__(self, ad: ADAPI) -> None:
self.ad = ad
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(f'NOTIFICATION: {message}', level='DEBUG')