Implement the notification service for Notify.Events.
Definition at line 50 of file notify.py.
◆ __init__()
| def homeassistant.components.notify_events.notify.NotifyEventsNotificationService.__init__ |
( |
|
self, |
|
|
|
token |
|
) |
| |
Initialize the service.
Definition at line 53 of file notify.py.
◆ 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 |
|
) |
| |
◆ token
| homeassistant.components.notify_events.notify.NotifyEventsNotificationService.token |
The documentation for this class was generated from the following file:
- core/homeassistant/components/notify_events/notify.py