|
| None | __init__ (self, HomeAssistant hass, str webhook_id, bool support_confirm, Callable[[dict], None] send_message, Callable[[], None] on_teardown) |
| |
| bool | async_confirm_notification (self, confirm_id) |
| |
| def | async_send_notification (self, data, fallback_send) |
| |
| def | async_teardown (self) |
| |
Class that represents a push channel.
Definition at line 15 of file push_notification.py.
◆ __init__()
| None homeassistant.components.mobile_app.push_notification.PushChannel.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
str |
webhook_id, |
|
|
bool |
support_confirm, |
|
|
Callable[[dict], None] |
send_message, |
|
|
Callable[[], None] |
on_teardown |
|
) |
| |
◆ async_confirm_notification()
| bool homeassistant.components.mobile_app.push_notification.PushChannel.async_confirm_notification |
( |
|
self, |
|
|
|
confirm_id |
|
) |
| |
Confirm a push notification.
Returns if confirmation successful.
Definition at line 67 of file push_notification.py.
◆ async_send_notification()
| def homeassistant.components.mobile_app.push_notification.PushChannel.async_send_notification |
( |
|
self, |
|
|
|
data, |
|
|
|
fallback_send |
|
) |
| |
◆ async_teardown()
| def homeassistant.components.mobile_app.push_notification.PushChannel.async_teardown |
( |
|
self | ) |
|
◆ _send_message
| homeassistant.components.mobile_app.push_notification.PushChannel._send_message |
|
private |
◆ hass
| homeassistant.components.mobile_app.push_notification.PushChannel.hass |
◆ on_teardown
| homeassistant.components.mobile_app.push_notification.PushChannel.on_teardown |
◆ support_confirm
| homeassistant.components.mobile_app.push_notification.PushChannel.support_confirm |
◆ webhook_id
| homeassistant.components.mobile_app.push_notification.PushChannel.webhook_id |
The documentation for this class was generated from the following file: