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

Public Member Functions

None __init__ (self, HomeAssistant hass, list[str] recp_nrs, SignalCliRestApi signal_cli_rest_api)
 
None send_message (self, str message="", **Any kwargs)
 

Static Public Member Functions

list[bytearray]|None get_attachments_as_bytes (Any data, int attachment_size_limit, HomeAssistant hass)
 
list[str]|None get_filenames (Any data)
 

Private Attributes

 _hass
 
 _recp_nrs
 
 _signal_cli_rest_api
 

Detailed Description

Implement the notification service for SignalMessenger.

Definition at line 85 of file notify.py.

Constructor & Destructor Documentation

◆ __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.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ _hass

homeassistant.components.signal_messenger.notify.SignalNotificationService._hass
private

Definition at line 96 of file notify.py.

◆ _recp_nrs

homeassistant.components.signal_messenger.notify.SignalNotificationService._recp_nrs
private

Definition at line 97 of file notify.py.

◆ _signal_cli_rest_api

homeassistant.components.signal_messenger.notify.SignalNotificationService._signal_cli_rest_api
private

Definition at line 98 of file notify.py.


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