Implement the notification service for SignalMessenger.
Definition at line 85 of file notify.py.
◆ __init__()
| None homeassistant.components.signal_messenger.notify.SignalNotificationService.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
list[str] |
recp_nrs, |
|
|
SignalCliRestApi |
signal_cli_rest_api |
|
) |
| |
Initialize the service.
Definition at line 88 of file notify.py.
◆ get_attachments_as_bytes()
| list[bytearray] | None homeassistant.components.signal_messenger.notify.SignalNotificationService.get_attachments_as_bytes |
( |
Any |
data, |
|
|
int |
attachment_size_limit, |
|
|
HomeAssistant |
hass |
|
) |
| |
|
static |
Retrieve attachments from URLs defined in data.
Definition at line 139 of file notify.py.
◆ get_filenames()
| list[str] | None homeassistant.components.signal_messenger.notify.SignalNotificationService.get_filenames |
( |
Any |
data | ) |
|
|
static |
Extract attachment filenames from data.
Definition at line 130 of file notify.py.
◆ send_message()
| None homeassistant.components.signal_messenger.notify.SignalNotificationService.send_message |
( |
|
self, |
|
|
str |
message = "", |
|
|
**Any |
kwargs |
|
) |
| |
Send a message to a one or more recipients. Additionally a file can be attached.
Definition at line 100 of file notify.py.
◆ _hass
| homeassistant.components.signal_messenger.notify.SignalNotificationService._hass |
|
private |
◆ _recp_nrs
| homeassistant.components.signal_messenger.notify.SignalNotificationService._recp_nrs |
|
private |
◆ _signal_cli_rest_api
| homeassistant.components.signal_messenger.notify.SignalNotificationService._signal_cli_rest_api |
|
private |
The documentation for this class was generated from the following file:
- core/homeassistant/components/signal_messenger/notify.py