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

Public Member Functions

None __init__ (self, HomeAssistant hass, PushBullet pushbullet)
 
dict[str, dict[str, Device|Channel]] pbtargets (self)
 
None send_message (self, str message, **Any kwargs)
 

Public Attributes

 hass
 
 pushbullet
 

Private Member Functions

None _push_data (self, str message, str title, dict[str, Any] data, PushBullet pusher, str|None email=None, str|None phonenumber=None)
 

Detailed Description

Implement the notification service for Pushbullet.

Definition at line 45 of file notify.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.pushbullet.notify.PushBulletNotificationService.__init__ (   self,
HomeAssistant  hass,
PushBullet  pushbullet 
)
Initialize the service.

Definition at line 48 of file notify.py.

Member Function Documentation

◆ _push_data()

None homeassistant.components.pushbullet.notify.PushBulletNotificationService._push_data (   self,
str  message,
str  title,
dict[str, Any]  data,
PushBullet  pusher,
str | None   email = None,
str | None   phonenumber = None 
)
private
Create the message content.

Definition at line 119 of file notify.py.

◆ pbtargets()

dict[str, dict[str, Device | Channel]] homeassistant.components.pushbullet.notify.PushBulletNotificationService.pbtargets (   self)
Return device and channel detected targets.

Definition at line 54 of file notify.py.

◆ send_message()

None homeassistant.components.pushbullet.notify.PushBulletNotificationService.send_message (   self,
str  message,
**Any  kwargs 
)
Send a message to a specified target.

If no target specified, a 'normal' push will be sent to all devices
linked to the Pushbullet account.
Email is special, these are assumed to always exist. We use a special
call which doesn't require a push object.

Definition at line 63 of file notify.py.

Member Data Documentation

◆ hass

homeassistant.components.pushbullet.notify.PushBulletNotificationService.hass

Definition at line 50 of file notify.py.

◆ pushbullet

homeassistant.components.pushbullet.notify.PushBulletNotificationService.pushbullet

Definition at line 51 of file notify.py.


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