|
| def | __init__ (self, private_key, is_allowed_path) |
| |
| def | get_base64 (cls, filebyte, mimetype) |
| |
| def | load_from_file (self, local_path=None) |
| |
| def | load_from_url (self, url=None, username=None, password=None, auth=None) |
| |
| def | send_message (self, message="", **kwargs) |
| |
Implementation of the notification service for Pushsafer.com.
Definition at line 73 of file notify.py.
◆ __init__()
| def homeassistant.components.pushsafer.notify.PushsaferNotificationService.__init__ |
( |
|
self, |
|
|
|
private_key, |
|
|
|
is_allowed_path |
|
) |
| |
Initialize the service.
Definition at line 76 of file notify.py.
◆ get_base64()
| def homeassistant.components.pushsafer.notify.PushsaferNotificationService.get_base64 |
( |
|
cls, |
|
|
|
filebyte, |
|
|
|
mimetype |
|
) |
| |
Convert the image to the expected base64 string of pushsafer.
Definition at line 145 of file notify.py.
◆ load_from_file()
| def homeassistant.components.pushsafer.notify.PushsaferNotificationService.load_from_file |
( |
|
self, |
|
|
|
local_path = None |
|
) |
| |
Load image/document/etc from a local path.
Definition at line 168 of file notify.py.
◆ load_from_url()
| def homeassistant.components.pushsafer.notify.PushsaferNotificationService.load_from_url |
( |
|
self, |
|
|
|
url = None, |
|
|
|
username = None, |
|
|
|
password = None, |
|
|
|
auth = None |
|
) |
| |
Load image/document/etc from URL.
Definition at line 154 of file notify.py.
◆ send_message()
| def homeassistant.components.pushsafer.notify.PushsaferNotificationService.send_message |
( |
|
self, |
|
|
|
message = "", |
|
|
** |
kwargs |
|
) |
| |
Send a message to specified target.
Definition at line 81 of file notify.py.
◆ _private_key
| homeassistant.components.pushsafer.notify.PushsaferNotificationService._private_key |
|
private |
◆ is_allowed_path
| homeassistant.components.pushsafer.notify.PushsaferNotificationService.is_allowed_path |
The documentation for this class was generated from the following file:
- core/homeassistant/components/pushsafer/notify.py