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

Public Member Functions

None __init__ (self, HomeAssistant hass, Mastodon client)
 
None send_message (self, str message="", **Any kwargs)
 

Public Attributes

 client
 

Private Member Functions

Any _media_type (self, Any media_path=None)
 
Any _upload_media (self, Any media_path=None)
 

Detailed Description

Implement the notification service for Mastodon.

Definition at line 101 of file notify.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.mastodon.notify.MastodonNotificationService.__init__ (   self,
HomeAssistant  hass,
Mastodon  client 
)
Initialize the service.

Definition at line 104 of file notify.py.

Member Function Documentation

◆ _media_type()

Any homeassistant.components.mastodon.notify.MastodonNotificationService._media_type (   self,
Any   media_path = None 
)
private
Get media Type.

Definition at line 168 of file notify.py.

◆ _upload_media()

Any homeassistant.components.mastodon.notify.MastodonNotificationService._upload_media (   self,
Any   media_path = None 
)
private
Upload media.

Definition at line 157 of file notify.py.

◆ send_message()

None homeassistant.components.mastodon.notify.MastodonNotificationService.send_message (   self,
str   message = "",
**Any  kwargs 
)
Toot a message, with media perhaps.

Definition at line 113 of file notify.py.

Member Data Documentation

◆ client

homeassistant.components.mastodon.notify.MastodonNotificationService.client

Definition at line 111 of file notify.py.


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