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

Public Member Functions

None __init__ (self, HomeAssistant hass, str resource, str method, dict[str, str]|None headers, dict[str, str]|None params, str message_param_name, str|None title_param_name, str|None target_param_name, dict[str, Any]|None data, dict[str, Any]|None data_template, httpx.Auth|None auth, bool verify_ssl)
 
None async_send_message (self, str message="", **Any kwargs)
 

Private Attributes

 _auth
 
 _data
 
 _data_template
 
 _hass
 
 _headers
 
 _message_param_name
 
 _method
 
 _params
 
 _resource
 
 _target_param_name
 
 _title_param_name
 
 _verify_ssl
 

Detailed Description

Implementation of a notification service for REST.

Definition at line 118 of file notify.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.rest.notify.RestNotificationService.__init__ (   self,
HomeAssistant  hass,
str  resource,
str  method,
dict[str, str] | None  headers,
dict[str, str] | None  params,
str  message_param_name,
str | None  title_param_name,
str | None  target_param_name,
dict[str, Any] | None  data,
dict[str, Any] | None  data_template,
httpx.Auth | None  auth,
bool  verify_ssl 
)
Initialize the service.

Definition at line 121 of file notify.py.

Member Function Documentation

◆ async_send_message()

None homeassistant.components.rest.notify.RestNotificationService.async_send_message (   self,
str   message = "",
**Any  kwargs 
)
Send a message to a user.

Definition at line 150 of file notify.py.

Member Data Documentation

◆ _auth

homeassistant.components.rest.notify.RestNotificationService._auth
private

Definition at line 147 of file notify.py.

◆ _data

homeassistant.components.rest.notify.RestNotificationService._data
private

Definition at line 145 of file notify.py.

◆ _data_template

homeassistant.components.rest.notify.RestNotificationService._data_template
private

Definition at line 146 of file notify.py.

◆ _hass

homeassistant.components.rest.notify.RestNotificationService._hass
private

Definition at line 138 of file notify.py.

◆ _headers

homeassistant.components.rest.notify.RestNotificationService._headers
private

Definition at line 140 of file notify.py.

◆ _message_param_name

homeassistant.components.rest.notify.RestNotificationService._message_param_name
private

Definition at line 142 of file notify.py.

◆ _method

homeassistant.components.rest.notify.RestNotificationService._method
private

Definition at line 139 of file notify.py.

◆ _params

homeassistant.components.rest.notify.RestNotificationService._params
private

Definition at line 141 of file notify.py.

◆ _resource

homeassistant.components.rest.notify.RestNotificationService._resource
private

Definition at line 137 of file notify.py.

◆ _target_param_name

homeassistant.components.rest.notify.RestNotificationService._target_param_name
private

Definition at line 144 of file notify.py.

◆ _title_param_name

homeassistant.components.rest.notify.RestNotificationService._title_param_name
private

Definition at line 143 of file notify.py.

◆ _verify_ssl

homeassistant.components.rest.notify.RestNotificationService._verify_ssl
private

Definition at line 148 of file notify.py.


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