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

Public Member Functions

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)
 

Public Attributes

 is_allowed_path
 

Private Attributes

 _private_key
 

Detailed Description

Implementation of the notification service for Pushsafer.com.

Definition at line 73 of file notify.py.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

◆ _private_key

homeassistant.components.pushsafer.notify.PushsaferNotificationService._private_key
private

Definition at line 78 of file notify.py.

◆ is_allowed_path

homeassistant.components.pushsafer.notify.PushsaferNotificationService.is_allowed_path

Definition at line 79 of file notify.py.


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