An abstract class for notification services.
Definition at line 209 of file legacy.py.
◆ _async_notify_message_service()
| None homeassistant.components.notify.legacy.BaseNotificationService._async_notify_message_service |
( |
|
self, |
|
|
ServiceCall |
service |
|
) |
| |
|
private |
Handle sending notification message service calls.
Definition at line 240 of file legacy.py.
◆ async_register_services()
| None homeassistant.components.notify.legacy.BaseNotificationService.async_register_services |
( |
|
self | ) |
|
Create or update the notify services.
Definition at line 278 of file legacy.py.
◆ async_send_message()
| None homeassistant.components.notify.legacy.BaseNotificationService.async_send_message |
( |
|
self, |
|
|
str |
message, |
|
|
**Any |
kwargs |
|
) |
| |
Send a message.
kwargs can contain ATTR_TITLE to specify a title.
Definition at line 231 of file legacy.py.
◆ async_setup()
| None homeassistant.components.notify.legacy.BaseNotificationService.async_setup |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
str |
service_name, |
|
|
str |
target_service_name_prefix |
|
) |
| |
Store the data for the notify service.
Definition at line 258 of file legacy.py.
◆ async_unregister_services()
| None homeassistant.components.notify.legacy.BaseNotificationService.async_unregister_services |
( |
|
self | ) |
|
Unregister the notify services.
Definition at line 337 of file legacy.py.
◆ send_message()
| None homeassistant.components.notify.legacy.BaseNotificationService.send_message |
( |
|
self, |
|
|
str |
message, |
|
|
**Any |
kwargs |
|
) |
| |
Send a message.
kwargs can contain ATTR_TITLE to specify a title.
Definition at line 224 of file legacy.py.
◆ targets()
| Mapping[str, Any] | None homeassistant.components.notify.legacy.BaseNotificationService.targets |
( |
|
self | ) |
|
Return a dictionary of registered targets.
Definition at line 220 of file legacy.py.
◆ _service_name
| homeassistant.components.notify.legacy.BaseNotificationService._service_name |
|
private |
◆ _target_service_name_prefix
| homeassistant.components.notify.legacy.BaseNotificationService._target_service_name_prefix |
|
private |
◆ hass
| homeassistant.components.notify.legacy.BaseNotificationService.hass |
◆ HomeAssistant
| homeassistant.components.notify.legacy.BaseNotificationService.HomeAssistant |
|
static |
◆ registered_targets
| homeassistant.components.notify.legacy.BaseNotificationService.registered_targets |
◆ services_dict
| homeassistant.components.notify.legacy.BaseNotificationService.services_dict |
The documentation for this class was generated from the following file:
- core/homeassistant/components/notify/legacy.py