Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.notify_events.notify.NotifyEventsNotificationService Class Reference
Inheritance diagram for homeassistant.components.notify_events.notify.NotifyEventsNotificationService:
[legend]
Collaboration diagram for homeassistant.components.notify_events.notify.NotifyEventsNotificationService:
[legend]

Public Member Functions

def __init__ (self, token)
 
def attach_file (self, Message msg, dict item, str kind=ATTR_FILE_KIND_FILE)
 
bool file_exists (self, filename)
 
Message prepare_message (self, message, data)
 
def send_message (self, message, **kwargs)
 

Public Attributes

 token
 

Detailed Description

Implement the notification service for Notify.Events.

Definition at line 50 of file notify.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.notify_events.notify.NotifyEventsNotificationService.__init__ (   self,
  token 
)
Initialize the service.

Definition at line 53 of file notify.py.

Member Function Documentation

◆ attach_file()

def homeassistant.components.notify_events.notify.NotifyEventsNotificationService.attach_file (   self,
Message  msg,
dict  item,
str   kind = ATTR_FILE_KIND_FILE 
)
Append a file or image to message.

Definition at line 63 of file notify.py.

◆ file_exists()

bool homeassistant.components.notify_events.notify.NotifyEventsNotificationService.file_exists (   self,
  filename 
)
Check if a file exists on disk and is in authorized path.

Definition at line 57 of file notify.py.

◆ prepare_message()

Message homeassistant.components.notify_events.notify.NotifyEventsNotificationService.prepare_message (   self,
  message,
  data 
)
Prepare a message to send.

Definition at line 97 of file notify.py.

◆ send_message()

def homeassistant.components.notify_events.notify.NotifyEventsNotificationService.send_message (   self,
  message,
**  kwargs 
)
Send a message.

Definition at line 126 of file notify.py.

Member Data Documentation

◆ token

homeassistant.components.notify_events.notify.NotifyEventsNotificationService.token

Definition at line 55 of file notify.py.


The documentation for this class was generated from the following file: