Implement the notification service for Mastodon.
Definition at line 101 of file notify.py.
◆ __init__()
| None homeassistant.components.mastodon.notify.MastodonNotificationService.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass, |
|
|
Mastodon |
client |
|
) |
| |
Initialize the service.
Definition at line 104 of file notify.py.
◆ _media_type()
| Any homeassistant.components.mastodon.notify.MastodonNotificationService._media_type |
( |
|
self, |
|
|
Any |
media_path = None |
|
) |
| |
|
private |
◆ _upload_media()
| Any homeassistant.components.mastodon.notify.MastodonNotificationService._upload_media |
( |
|
self, |
|
|
Any |
media_path = None |
|
) |
| |
|
private |
◆ 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.
◆ client
| homeassistant.components.mastodon.notify.MastodonNotificationService.client |
The documentation for this class was generated from the following file:
- core/homeassistant/components/mastodon/notify.py